19.06.2014, 02:55
Hi, well i am putting RyDeR's racing system, into my own GM.(i like to have, everything in one place) So im putting it down piece by piece, compiling it after every piece and seeing that there were no errors, just a couple of warnings(non used strings yet). So i get to this command, and well its the first thing that has SendClientMessage and the Pawn starts acting up on it, i put more commands it acts up on all of them too.. My script has SendClientMessage in it already, and those dont give no errors, but these. The original filterscript compiles with no errors. Heres the command, where the error occurs(it occurs on every single lines, where it sens a message).:
Error lines:
Anyone know what is going on?
pawn Код:
CMD:buildrace(playerid, params[])
{
// if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "<!> You are not an administrator!");
if(GetPVarInt(playerid, "Adminas") < 5)
{
SendClientMessage(playerid, RED, "<!> You are not an administrator!");
return 1;
}
if(BuildRace != 0) return SendClientMessage(playerid, RED, "<!> There's already someone building a race!");
if(RaceBusy == 0x01) return SendClientMessage(playerid, RED, "<!> Wait first till race ends!");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "<!> Please leave your vehicle first!");
BuildRace = playerid+1;
ShowDialog(playerid, 599);
return 1;
}
Код:
(1761) : error 035: argument type mismatch (argument 2) (1764) : error 035: argument type mismatch (argument 2) (1765) : error 035: argument type mismatch (argument 2) (1766) : error 035: argument type mismatch (argument 2) (7706) : warning 204: symbol is assigned a value that is never used: "CountAmount" (7882) : warning 204: symbol is assigned a value that is never used: "FinishCount" (7701) : warning 204: symbol is assigned a value that is never used: "Position" (7878) : warning 204: symbol is assigned a value that is never used: "RaceStarted" (7879) : warning 204: symbol is assigned a value that is never used: "RaceTick" (7883) : warning 204: symbol is assigned a value that is never used: "TimeProgress" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.