01.12.2010, 05:22
Otra vuelta con molestias..xD..!
Pues bueno, en este caso no es un error, si no un warning:
del comando:
Si hace la funcion, pero me dice que el comando no existe... no se si me explico bien.
Pues bueno, en este caso no es un error, si no un warning:
Код:
D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(110) : warning 209: function "dcmd_setlotto" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
pawn Код:
dcmd_setlotto(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /setlotto [playerid]");
new player1 = strval(params), string[128];
if(IsPlayerConnected(player1)) {
lottoWinner = player1;
format(string,sizeof(string),"You Have Set The Lotto In %d", player1);
SendClientMessage(playerid,blue1,string);
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}