Errors in script
#1

pawn Код:
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 029: invalid expression, assumed zero
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : warning 215: expression has no effect
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 001: expected token: ";", but found "]"
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 029: invalid expression, assumed zero
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : fatal error 107: too many error messages on one line

that was errors this is the line

pawn Код:
if(!IsPlayerAdmin(playerid)||PlayerInfo[playerid][AdminLevel]<5)return SendClientMessage(playerid,0xFF0000FF,"You're not authorized to use that command");
Thanks.
Reply
#2

Quote:
Originally Posted by Defence1771
Посмотреть сообщение
pawn Код:
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 029: invalid expression, assumed zero
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : warning 215: expression has no effect
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 001: expected token: ";", but found "]"
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : error 029: invalid expression, assumed zero
C:\Users\Elias\Desktop\New folder\gamemodes\ERPS.pwn(388) : fatal error 107: too many error messages on one line

that was errors this is the line

pawn Код:
if(!IsPlayerAdmin(playerid)||PlayerInfo[playerid][AdminLevel]<5)return SendClientMessage(playerid,0xFF0000FF,"You're not authorized to use that command");
Thanks.
The code is wrong I guess?

try this

pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are logged in as RCON to use this command.");//this code is for, when a player is not logged in as rcon he can't use the command, he wil return the message like above.
And if you want your own admin level to be used, then try the following:-

pawn Код:
if(PlayerInfo[playerid][AdminLevel] < 5) return SendClientMessage(playerid, -1, "You are not level 5 or more to use this command."); // this code is for, when you are not level 5 in your admin system
Hope this helps

-FalconX
Reply
#3

ok thanks + reping you
Reply
#4

Quote:
Originally Posted by Defence1771
Посмотреть сообщение
ok thanks + reping you
You cannot rep until you reach 50 posts.
Reply
#5

Quote:
Originally Posted by Defence1771
Посмотреть сообщение
ok thanks + reping you
lol, I know that you can not rep+ me but remember I don't help people for REP, it should be earned not asked for it

-FalconX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)