Bekomme diese Errors ?
public OnPlayerCommandText(playerid, cmdtext[])
{
//new giveplayerid;
new cmd[128], tmp[128], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 10 || IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, rot, "Benutze: /makeadmin [ID] [Level]");
return 1;
}
new giveplayer[24];
new sendername[24];
new string[126];
new para1 = strval(tmp);
tmp = strtok(cmdtext, idx);
new level = strval(tmp);
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[para1][pAdmin] < level)
{
printf("AdmCmd: %s hat %s zu einem Level %d Admin befördert.", sendername, giveplayer, level);
format(string, sizeof(string), "Du wurdest durch %s zu einem Level %d Admin befördert", sendername, level);
SendClientMessage(para1, hellblau, string);
format(string, sizeof(string), "Du hast %s zu einem Level %d Admin befördert.", giveplayer,level);
SendClientMessage(playerid, hellblau, string);
}
else
{
printf("AdmCmd: %s hat %s zu einem Level %d Admin degradiert.", sendername, giveplayer, level);
format(string, sizeof(string), "Du wurdest durch %s zu einem Level %d Admin degradiert", sendername, level);
SendClientMessage(para1, hellblau, string);
format(string, sizeof(string), "Du hast %s zu einem Level %d Admin degradiert.", giveplayer,level);
SendClientMessage(playerid, hellblau, string);
}
PlayerInfo[para1][pAdmin] = level;
}
}
}
return 1;
}
return 1;
}
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(5) : error 017: undefined symbol "strtok"
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(5) : error 033: array must be indexed (variable "cmd")
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(10) : error 017: undefined symbol "strtok"
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(10) : error 033: array must be indexed (variable "tmp")
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(10) : error 017: undefined symbol "strtok"
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(20) : error 033: array must be indexed (variable "tmp")
C:\Users\Tim\Desktop\Name v1.0\gamemodes\GER.pwn(4) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.