SA-MP Forums Archive
MoveObject problem :/ - 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: MoveObject problem :/ (/showthread.php?tid=219528)



MoveObject problem :/ - TheAlienForce - 01.02.2011

Код:
C:\Users\Chico\Desktop\Stunt\gamemodes\ostunt.pwn(397) : error 035: argument type mismatch (argument 2)
pawn Код:
public Checkrocket()
{
    new Float:x,Float:y,Float:z;
    if(GetObjectPos(rocket,x == -207.96336365 && y == 9.77062035 && z == 5.47431803))
    {
        goinguprocket = 0;
    }
    return 1;
}
error line
pawn Код:
if(GetObjectPos(rocket,x == -207.96336365 && y == 9.77062035 && z == 5.47431803))



Respuesta: MoveObject problem :/ - ipsBruno - 01.02.2011

pawn Код:
public Checkrocket()
{
    new Float:x,Float:y,Float:z;
    GetObjectPos(rocket,x,y,z);
    if(x == -207.96336365 && y == 9.77062035 && z == 5.47431803)
    {
        goinguprocket = 0;
    }
    return 1;
}