2warnings?
#1

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

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

thanks bro <3
Reply
#4

Quote:
Originally Posted by CrazyBlob
Посмотреть сообщение
thanks bro <3
No problem. Have fun.
Reply
#5

WOW?! Line 45309? xD
Reply
#6

yeah lol xD ive got 90k lines atm scriptin a rp could use a few co owners ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)