SA-MP Forums Archive
zcmd problem :-?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: zcmd problem :-?? (/showthread.php?tid=180404)



zcmd problem :-?? - eXtr1kE - 01.10.2010

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);




Re: zcmd problem :-?? - DarkPower - 01.10.2010

lol

COMMAND:nameofcommand(playerid,params[])


Re: zcmd problem :-?? - eXtr1kE - 01.10.2010

Ok now I have changed:

C: \ SAMP 0.3b R2 \ gamemodes \ gf.pwn (10 780): warning 209: function "cmd_levelupall" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 7780 bytes
Code size: 1371888 bytes
Data size: 24805040 bytes
Stack / heap size: 16384 bytes; Estimated max. usage = 4124 cells (16,496 bytes)
Total Requirements: 26201092 bytes

A Warning.


Re: zcmd problem :-?? - eXtr1kE - 01.10.2010

Solved, closed.