Alles anzeigenDer code
if(strcmp(cmdtext,"/afklist",true)==0)
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
if(afk[i] = 1;)
{
format(string,sizeof(string),"Spieler %s",GetPlayerName(i));
}
SendClientMessage(playerid,WEIß,"|_______AFKLIST_______|");
SendClientMessage(playerid,WEIß.string);
}
die errors
C:\Users\D.Fence\Desktop\SAMP Hamachi Server\gamemodes\Selfmade.pwn(3794) : warning 211: possibly unintended assignment
C:\Users\D.Fence\Desktop\SAMP Hamachi Server\gamemodes\Selfmade.pwn(3794) : error 001: expected token: ")", but found ";"
C:\Users\D.Fence\Desktop\SAMP Hamachi Server\gamemodes\Selfmade.pwn(3794) : error 036: empty statement
C:\Users\D.Fence\Desktop\SAMP Hamachi Server\gamemodes\Selfmade.pwn(3794) : error 029: invalid expression, assumed zero
C:\Users\D.Fence\Desktop\SAMP Hamachi Server\gamemodes\Selfmade.pwn(3794) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
die zeile 3794
if(afk[i] = 1;)
if(strcmp(cmdtext,"/afklist",true)==0)
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
if(afk[i] == 1)
{
format(string,sizeof(string),"Spieler %s",GetPlayerName(i));
}
SendClientMessage(playerid,WEIß,"|_______AFKLIST_______|");
SendClientMessage(playerid,WEIß.string);
}