01.10.2012, 08:46
Quote:
You mean this?
Код:
if(fexist(file)) { ShowLogin(playerid); }else { ShowRegister(playerid); new params; if(strcmp(params, "test", true) == 0 ); { Kick(playerid); } } |
pawn Код:
array[0] = 't';
array[1] = 'e';
array[2] = 's';
array[3] = 't';
What you should have done is fetch the name using https://sampwiki.blast.hk/wiki/GetPlayerName
Then what you do is compare the name(which in turn is a string - or an array for pawn's scenario) with the strcmp function.