Csináltam egy ilyet:
CMD:adminok(playerid, params[])
{
new string[256];
new fstring[64];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(level > 0))
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(i,pname, sizeof(pname));
format(fstring, sizeof(fstring),\"{00bbff}%s (%i) - {ffffff}Szint: {00bbff}%i\\n\", pname, i, level);
strcat(string, fstring, sizeof(string));
}
}
ShowPlayerDialog(playerid,2563,DIALOG_STYLE_MSGBOX,\"{ff0000}Online Adminok\",string,\"OK\",\"\");
return 1;
}
és hibát ír:
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\PC.pwn(279) : error 017: undefined symbol \"level\"
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\PC.pwn(279) : warning 215: expression has no effect
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\PC.pwn(279) : error 001: expected token: \";\", but found \"]\"
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\PC.pwn(279) : error 029: invalid expression, assumed zero
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\PC.pwn(279) : 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.