Hallo Community,
ich habe ein Problem bei meinem /stats system ich kriege immer diese errors:
Code
C:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(124) : warning 215: expression has no effectC:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(124) : error 001: expected token: ";", but found "-string-"
C:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(124) : warning 215: expression has no effect
C:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(125) : warning 215: expression has no effect
C:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(125) : error 001: expected token: ";", but found "-string-"
C:\Users\Dennis\Desktop\samp03e_svr_R2_win32\gamemodes\selfmade.pwn(125) : warning 215: expression has no effect
Bei dieser stelle:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/stats",true)==0)
{
new string[128];
new fraktname[64];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname"Keine";}
case 1:{fraktname"LSPD";}
}
//1 Reihe
format(string,sizeof(string),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion: %s]",SpielerName(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname);
SendClientMessage(playerid,HELLGRUEN,string);
//2 Reihe
return 1;
}
return 0;
}
Was ist der Fehler?
Danke im Vorraus.