C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(806) : error 017: undefined symbol "giveplayerid"
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(806) : error 017: undefined symbol "ReturnUser"
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(807) : error 017: undefined symbol "ReturnUser"
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(816) : error 017: undefined symbol "giveplayer"
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(816) : error 017: undefined symbol "giveplayer"
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(816) : error 029: invalid expression, assumed zero
C:\DOKUME~1\Michael2\Desktop\GTASER~1\GAMEMO~1\reallife.pwn(816) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Bitte könnt ihr mir helfen die Errors weg zu bekommen hier die zeilen wo es drine vorkommt
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAU, "Benutze: /makeadmin [playerid/PartOfName] [level(1-3)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_HELLBLAU, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_HELLBLAU, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAU, " Nicht für dich - MFG Name!");
}
}
return 1;
}