Problem...
#1

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);
     } 
Reply
#2

Maybe this code doesnt support the rotate coords?
Reply
#3

Umm..
What do u mean by that ?
Reply
#4

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

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);
     } 
Reply
#6

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.
Reply
#7

Ohh Silly me
Thanks xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)