01.10.2010, 12:01
Errors :
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10780) : warning 209: function "zcmd" should return a value
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10766) : warning 203: symbol is never used: "levelupall"
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10797) : error 017: undefined symbol "levelupall"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Script :
zcmd(levelupall,playerid)
{
if (PlayerInfo[playerid][pAdmin] == 133 {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
new playerlevel = PlayerInfo[i][pLevel], sendername[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[i][pLevel] = playerlevel + 1;
format(string, sizeof(string), "AdmCmd: %s given to all level up.",sendername);
SendClientMessage(i,COLOR_LIGHTRED,string);
}
}
return 1;
} else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command !"); }
}
zcmd(levelupall, cmdtext);
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10780) : warning 209: function "zcmd" should return a value
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10766) : warning 203: symbol is never used: "levelupall"
C:\SaMp 0.3b R2\gamemodes\gf.pwn(10797) : error 017: undefined symbol "levelupall"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Script :
zcmd(levelupall,playerid)
{
if (PlayerInfo[playerid][pAdmin] == 133 {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
new playerlevel = PlayerInfo[i][pLevel], sendername[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[i][pLevel] = playerlevel + 1;
format(string, sizeof(string), "AdmCmd: %s given to all level up.",sendername);
SendClientMessage(i,COLOR_LIGHTRED,string);
}
}
return 1;
} else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command !"); }
}
zcmd(levelupall, cmdtext);