zcmd problem :-??
#1

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

Reply
#2

lol

COMMAND:nameofcommand(playerid,params[])
Reply
#3

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.
Reply
#4

Solved, closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)