28.05.2013, 18:28
Ok, i'm trying to see if i can make it so only people with a certain name can use it, i've seen it done before, and everything i'm trying won't work. What am i doing wrong?
Код:
CMD:test(playerid) { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, MAX_PLAYER_NAME); if(strcmp("Jay_Dixon,"playername, true, 10) == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "i'm awesome!"); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, " YOU'RE NOT JAY!"); } return 1; }
Код:
C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : warning 215: expression has no effect C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : warning 215: expression has no effect C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : warning 215: expression has no effect C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : error 001: expected token: ";", but found ")" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : error 029: invalid expression, assumed zero C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(34693) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.