30.11.2010, 04:04
Hola, pues tengo un problema con un FS... lo que pasa es que cuando trato de compilarlo me da 6 errores, pero no logro verlos. Haber si alguien me puede ayudar:
Estos son los errores que me tira:
pawn Код:
runLotto()
{
new playerid,string;
playerid = random(50);
if (IsPlayerConnected(playerid))
{
lottoWinner = playerid;
if(lottoWinner >= 0)
{
format(string, sizeof(string), "%s (%d) Has Won The Lottery Jackpot! Winning $%i", PlayerName(lottoWinner), lottoWiner, lottoCashAmount);//linea 45
GameTextForPlayer(playerid, "~b~you have won the lotto ~n~~n~~p~congratulations!", 5000, 3);
GivePlayerMoney(lottoWinner, lottoCashAmount);
SendClientMessageToAll(COLOR_WHITE,string);//linea 48
lottoCashAmount = Random(100000, 8000000);
lottoWinner = -1;
}
else if(lottoWinner == -1)
{
format(string, sizeof(string), "No Body Has Won The Lottery Jackpot, $%i Has Been Refunded. Lucky Number: %d", lottoCashAmount, lottoNumber);// linea 54
lottoCashAmount = Random(100000, 8000000);
SendClientMessageToAll(COLOR_WHITE,string);// linea 56
}
}
}
Код:
D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(45) : error 035: argument type mismatch (argument 1) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(45) : error 035: argument type mismatch (argument 1) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(48) : error 035: argument type mismatch (argument 2) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(54) : error 035: argument type mismatch (argument 1) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(54) : error 035: argument type mismatch (argument 1) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(56) : error 035: argument type mismatch (argument 2) D:\Program Files\Rockstar Games\Server\filterscripts\Sophie.pwn(38) : warning 203: symbol is never used: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.