SA-MP Forums Archive
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)
+--- Thread: Problem... (/showthread.php?tid=374104)



Problem... - iMarsa - 01.09.2012

I have some errors..

Код HTML:
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4023) : warning 202: number of arguments does not match definition
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4023) : warning 202: number of arguments does not match definition
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4023) : warning 202: number of arguments does not match definition
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4030) : warning 202: number of arguments does not match definition
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4030) : warning 202: number of arguments does not match definition
C:\Users\Kдlimees\Desktop\***\gamemodes\*.pwn(4030) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
PHP код:
Lines
 
}
     else if(
IsPlayerInRangeOfPoint(playerid2.21813.69995117,-1539.30004883,12.19999981))
     {
        new 
str[128];
        if(
Server[DoorStatus3] == 0)
        {
    
Line 4023-->MoveDynamicObject(door[2], 1813.69995117,-1539.00004883  -5,12.199999813.00.00000000,0.00000000,88.00000000);
           
Server[DoorStatus3] = 1;
           
format(strsizeof(str), "* %s scans his keycard on the machine"GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
        }
        else if(
Server[DoorStatus3] == 1)
        {
    
Line 4030--> MoveDynamicObject(door[2], 1813.69995117,-1539.00004883,12.199999813.00.00000000,0.00000000,88.00000000);
           
Server[DoorStatus3] = 0;
           
format(strsizeof(str), "* Door closing"GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
     } 



Re: Problem... - Admigo - 01.09.2012

Maybe this code doesnt support the rotate coords?


Re: Problem... - iMarsa - 01.09.2012

Umm..
What do u mean by that ?


Re: Problem... - Admigo - 01.09.2012

Код:
MoveDynamicObject(door[2], 1813.69995117,-1539.00004883,  -5,12.19999981, 3.0); 
MoveDynamicObject(door[2], 1813.69995117,-1539.00004883,12.19999981, 3.0);



Re: Problem... - iMarsa - 01.09.2012

I'll better show other doors too, they r diffirent, but no error...

PHP код:
{
           
SetDynamicObjectRot(door[0], 0.00000000,0.00000000,0.00000000 87);
           
Server[DoorStatus1] = 1;
           
format(strsizeof(str), "* %s pushes the door open."GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
        }
        else if(
Server[DoorStatus1] == 1)
        {
           
SetDynamicObjectRot(door[0], 0.00000000,0.00000000,0.00000000);
           
Server[DoorStatus1] = 0;
           
format(strsizeof(str), "* %s pulls the handle to close the door."GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
    }
    {
           
SetDynamicObjectRot(door[1], 0.00000000,0.00000000,179.99450684 87);
           
Server[DoorStatus2] = 1;
           
format(strsizeof(str), "* %s pushes the door open"GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
        }
        else if(
Server[DoorStatus2] == 1)
        {
           
SetDynamicObjectRot(door[1], 0.00000000,0.00000000,179.99450684);
           
Server[DoorStatus2] = 0;
           
format(strsizeof(str), "* %s pulls the handle to close the door."GetICName(playerid));
           
SendNearByMessage(playeridACTION_COLORstr3);
     } 



Re: Problem... - Admigo - 01.09.2012

Because you using a other code then this code.
You use MoveDynamicObject so thats only supported for moving a object.
This code uses
Код:
 SetDynamicObjectRot(door[0], 0.00000000,0.00000000,0.00000000 + 87);
So this is for rotating the object.


Re: Problem... - iMarsa - 01.09.2012

Ohh Silly me
Thanks xD