2warnings? - 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: 2warnings? (
/showthread.php?tid=250217)
2warnings? -
CrazyBlob - 22.04.2011
ok so im getting these warnings from this code
Код:
else if(IsPlayerInRangeOfPoint(playerid, 12.0, 959.77075195,-1210.67639160,17.79789734))
{ //CIA GATE
if(!(PlayerInfo[playerid][pMember] == 7)) return SendClientMessage(playerid,COLOR_GREY," You are not a member of the CIA !");
if(ciagateopen == 0)
{
ciagateopen = 1;
MoveDynamicObject(ciagate, 966.39624023,-1210.71020508,17.79789734);//<--- Line 45309
}
else
{
ciagateopen = 0;
MoveDynamicObject(ciagate, 959.77075195,-1210.67639160,17.79789734);//<--- Line 45314
}
}
Код:
C:\Users\Stephen-Laptop\Desktop\role\gamemodes\TRP.pwn(45309) : warning 202: number of arguments does not match definition
C:\Users\Stephen-Laptop\Desktop\role\gamemodes\TRP.pwn(45314) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
can some1 help?
and i converted them off mta through convertffs.com if their too long can some1 make them shorter ?ty
Re: 2warnings? -
Jeffry - 22.04.2011
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 12.0, 959.77075195,-1210.67639160,17.79789734))
{ //CIA GATE
if(!(PlayerInfo[playerid][pMember] == 7)) return SendClientMessage(playerid,COLOR_GREY," You are not a member of the CIA !");
if(ciagateopen == 0)
{
ciagateopen = 1;
MoveDynamicObject(ciagate, 966.39624023,-1210.71020508,17.79789734,0.5);//<--- Line 45309
}
else
{
ciagateopen = 0;
MoveDynamicObject(ciagate, 959.77075195,-1210.67639160,17.79789734,0.5);//<--- Line 45314
}
}
You need a speed. (I set it to 0.5, but feel free to change it).
Jeffry
Re: 2warnings? -
CrazyBlob - 22.04.2011
thanks bro <3
Re: 2warnings? -
Jeffry - 22.04.2011
Quote:
Originally Posted by CrazyBlob
thanks bro <3
|
No problem. Have fun.
Re: 2warnings? -
Seven_of_Nine - 22.04.2011
WOW?! Line 45309? xD
Re: 2warnings? -
CrazyBlob - 22.04.2011
yeah lol xD ive got 90k lines atm scriptin a rp could use a few co owners ^^