Liebe Community,
Ich habe das Problem das /notfallliste nicht funktioniert, ich habe nun ERRORS.
Die ERRORS:
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33926) : error 017: undefined symbol "i"
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33932) : error 012: invalid function call, not a valid address
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33932) : warning 215: expression has no effect
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33932) : error 001: expected token: ";", but found ")"
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33932) : error 029: invalid expression, assumed zero
C:\{- SA-MP Server -}\gamemodes\CoR-1-0-7.pwn(33932) : fatal error 107: too many error messages on one line
Die Script-Codes:
[pwn=33924]ocmd:notfallliste(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 4 PlayerInfo[playerid][pLeader] == 4) return SendClientMessage(playerid, COLOR_GRAD1,"Du bist kein Paramedic!");
#pragma unused params
new NameP[MAX_PLAYER_NAME];
GetPlayerName(i, NameP, sizeof(NameP));
new count = 1,string[428];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pTod] > 0)
{
format(string, sizeof(string), "{FFFFFF}Name: {B40404}%s(%d)\n%s",NameP(i),i,string);
count ++;
}
}
if(count != 1)
{
ShowPlayerDialog(playerid, DIALOG_NFL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Notfallliste", string, "Bestätigen", "");
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_NFL, DIALOG_STYLE_MSGBOX, "{FFFFFF}Notfallliste", "{FFFFFF}Zurzeit ist keiner verletzt!", "Bestätigen", "");
return 1;
}
}
[/pwn]
Ich hoffe ihr könnt mir helfen
MFG
James.