Author Topic: Starting server problem  (Read 4444 times)

0 Members and 1 Guest are viewing this topic.

Offline Maxximizer

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Starting server problem
« on: September 20, 2014, 10:54:53 pm »
Hi guys. Need you help.
When i'm starting my script, console says:


Line 2617
else if (!IsNum(tmp[1] || tmp[1].tointeger() < || tmp[1].tointeger() > 5ClientMessage("Enter: /c setrank [Nick] [1-5]"player25500);

All code
	
else if (
cmd == "setrank")
	
{
	
	
if (
PlayerInfo[playerid].Logged == 0ClientMessage("You are not log in!"player25500);
	
	
else if (!
IsPlayerExistsClan(player)) ClientMessage("You have not clan!"player25500);
	
	
else if (!
textClientMessage("Enter: /c setrank [Nick] [1-5]"player25500);
	
	
else if (
GetPlayerDetailsValue(player"clan_rank") < 3ClientMessage("You need clan rank [3]"player25500);
	
	
else
	
	
{
	
	
	
local tmp split(text" "); //&#1056;&#1072;&#1079;&#1073;&#1080;&#1074;&#1072;&#1077;&#1084; &#1080;&#1089;&#1093;&#1086;&#1076;&#1085;&#1091;&#1102; &#1082;&#1086;&#1084;&#1072;&#1085;&#1076;&#1091; &#1087;&#1086; &#1087;&#1088;&#1086;&#1073;&#1077;&#1083;&#1072;&#1084; &#1080; &#1087;&#1080;&#1096;&#1077;&#1084; &#1074; &#1084;&#1072;&#1089;&#1089;&#1080;&#1074; cmd
	
	
	
if (
tmp.len() != 2ClientMessage("Enter: /c setrank [Nick] [1-5]"player25500);
	
	
	
else if ( !
IsClanRegistered(tmp[0]) ) ClientMessage("This clan does not exists"player25500);
	
	
	
else if (!
IsNum(tmp[1] || tmp[1].tointeger() < || tmp[1].tointeger() > 5ClientMessage("Enter: /c setrank [Nick] [1-5]"player25500);
	
	
	
else
	
	
	
{
	
	
	
	
SetPlayerDetailsValue(player"clan_rank"tmp[1].tointeger() );
	
	
	
	

	
	
	
	
msg format("%s [%i] set clan rank: [%i]"player.NameGetPlayerLevel(player), tmp[1].tointeger() );
	
	
	
	
ClientMessage(msgplayer25500);
	
	
	
}
	
	
}
	
}

Please help me, i'm beginner

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Starting server problem
« Reply #1 on: September 20, 2014, 10:59:00 pm »
Which is line 2617 ?
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline Maxximizer

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Re: Starting server problem
« Reply #2 on: September 20, 2014, 11:00:47 pm »
Which is line 2617 ?
Line 2617
else if (!IsNum(tmp[1] || tmp[1].tointeger() < 1 || tmp[1].tointeger() > 5) ClientMessage("Enter: /c setrank [Nick] [1-5]", player, 255, 0, 0);

Offline Maxximizer

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Re: Starting server problem
« Reply #3 on: September 20, 2014, 11:07:12 pm »
p.s. Before use a 0.4 version, i'm use this script on 0.3z ver

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Starting server problem
« Reply #4 on: September 20, 2014, 11:46:58 pm »
you forgot a ) after IsNum( tmp[1] )

replace it with:

else if (!IsNum(tmp[1]) || tmp[1].tointeger() < || tmp[1].tointeger() > 5ClientMessage("Enter: /c setrank [Nick] [1-5]"player25500);
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline Maxximizer

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Re: Starting server problem
« Reply #5 on: September 21, 2014, 09:37:39 am »
big thanks