Hallo,
Iwie komisch. Er kann das Adminlevel beim /stats Befehl nicht auslesen
if(!strcmp("/stats", cmdtext, true))
{
new string[128],name[24];
GetPlayerName(playerid,name,24);
format(string,sizeof(string),"Name: %s\nLevel: %d\nMoney: %d\nPing: %d\nAdminlevel: i%",name,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerPing(playerid)GetPVarInt(playerid,"Adminlevel")); // Die Zeile in der alle Fehler sind
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Deine Statistik",string,"OK","");
return 1;
}
Fehlercode:
C:\Users\Jonas\Documents\SAMP-Server\gamemodes\MeinServer.pwn(539) : error 017: undefined symbol "string"
C:\Users\Jonas\Documents\SAMP-Server\gamemodes\MeinServer.pwn(539) : error 017: undefined symbol "string"
C:\Users\Jonas\Documents\SAMP-Server\gamemodes\MeinServer.pwn(539) : error 029: invalid expression, assumed zero
C:\Users\Jonas\Documents\SAMP-Server\gamemodes\MeinServer.pwn(539) : fatal error 107: too many error messages on one line