Hi, ich bin Neuling und bekomme beim Kompilieren folgende Errors:
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(623) : error 017: undefined symbol "idx"
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(625) : error 017: undefined symbol "idx"
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(628) : error 017: undefined symbol "otherplayer"
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(631) : error 017: undefined symbol "string"
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(631) : error 017: undefined symbol "string"
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(631) : error 029: invalid expression, assumed zero
C:\Users\Office Laptop\excelsior\SA-MP\gamemodes\test.pwn(631) : fatal error 107: too many error messages on one line
Die Zeilen dazu sind:
[pwn=618]
if(strcmp(cmdtext, "/setscore", true) == 0)
{
new sendername[MAX_PLAYER_NAME];
new tmp[256];
new tmp2[256];
tmp = strtok(cmdtext, idx);
new givenplayer = strval(tmp);
tmp2 = strtok(cmdtext, idx);
new score = strval(tmp2);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_INFO, "> Nutzung: <playerid> <score>");
if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_INFO, "> Ungültige ID");
SetPlayerScore(givenplayer,score);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "> Administrator "%s" hat dein Level auf %d gesetzt.", sendername, score);
SendClientMessage(otherplayer, COLOR_GREEN, string);
return 1;
}
[/pwn]