if( korozers[ playerid ] == 1 )
De használd a PVar rendszert:
public OnPlayerDeath( playerid, killerid, reason ) {
//egyéb dolgok...
SetPVarInt( killerid, \"Korozes\", true );
return 1;
}
//Valami parancsban, vagy ahol használni akarod:
if( GetPVarInt( playerid, \"Korozes\" ) ) {
//Ha körözik
} else {
//Ha nem
}
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(47) : warning 217: loose indentation
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(52) : error 035: argument type mismatch (argument 2)
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : warning 217: loose indentation
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 017: undefined symbol \"color_\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : warning 215: expression has no effect
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 001: expected token: \";\", but found \"-identifier-\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 017: undefined symbol \"sa\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
:-\\
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(47) : warning 217: loose indentation
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(52) : error 035: argument type mismatch (argument 2)
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : warning 217: loose indentation
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 017: undefined symbol \"color_\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : warning 215: expression has no effect
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 001: expected token: \";\", but found \"-identifier-\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : error 017: undefined symbol \"sa\"
C:\\Documents and Settings\\xxx\\Asztal\\0.3c ServeR\\filterscripts\\munkascript.pwn(55) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
:-\\
color_csa-t változtasd meg
ja és írd le a parancsot kiváncsi vok hogy néz ki
if(!strcmp(\"/korozes\", cmdtext, true))
{
new maxp = GetMaxPlayers(), string[128] = \"Körözöttek: \", name[MAX_PLAYER_NAME];
for(new i; i < maxp; i++)
{
if(IsPlayerConnected(i) && GetPVarInt(i, \"Korozes\"))
{
GetPlayerName(i, name, MAX_PLAYER_NAME);
format(string, \"%s%s, \", string, name);
}
}
SendClientMessage(playerid, COLOR_CEKLAKEK, string);
return 1;
}
kijavitottam a hibákat, maradt 1.
munkascript.pwn(52) : error 035: argument type mismatch (argument 2)
52-es sor:
format(string, \"%s%s, \", string, name);
:shy: