27.07.2010, 12:05
Hi! I downloaded SPAWN script, my admin system is different from it's
Script:
If i try to change it to mine Admin system:
I'm getting these error's:
Please help me to solve this problem!
Script:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[200], idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/spawn", true, 10) == 0) { if(IsPlayerAdmin(playerid) == 1) return SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[200], idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/spawn", true, 10) == 0) { if(playerDB[playerid][admin] == 1) return SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
Код:
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 017: undefined symbol "playerDB" C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : warning 215: expression has no effect C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 001: expected token: ";", but found "]" C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 029: invalid expression, assumed zero C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : fatal error 107: too many error messages on one line