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



Warnings. - SpikeSpigel - 02.07.2015

Hi there ! I have an RP server and I have made myself a phone shop.

So, you need to go in front of the location, type enter and when you are in you type /buyphone . Ok, doesn't matter.
I have more locations with /enter & /exit commands ..

I have put the location for it and when I'm trying to compile it these are my errors.

C:\Users\SpikeSpigel\Desktop\GM + comenzi\/IBP/Publics/OnPlayerCommandReceived.pwn(13960) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

I just don't know where are these defined. Are these defined with "new asd" or "define asdasd" ?

This is the location for it to enter .

Код:
		if(PlayerToPoint(9, playerid,1726.8235,-1635.9755,20.2169))  // telefoane
		{
			SetPlayerPos(playerid, 1004.6429,51.9789,55.3221,268);
			TogglePlayerControllable(playerid, 0);
			SetTimerEx("Unfreezeren", 2500, false, "i", playerid);
			SetPlayerInterior(playerid,1);
		}
For exit I think it's not bugged.

Help me please, I need to put that update on my server tomorrow..


Re: Warnings. - IgorLuiz - 02.07.2015

try this code friend!

PHP код:
        if(PlayerToPoint(playerid9,1726.8235,-1635.9755,20.2169))  // telefoane
        
{
            
SetPlayerPos(playerid1004.6429,51.9789,55.3221,268);
            
TogglePlayerControllable(playerid0);
            
SetTimerEx("Unfreezeren"2500false"i"playerid);
            
SetPlayerInterior(playerid,1);
        } 



Re: Warnings. - JaydenJason - 02.07.2015

You're using 4 arguments at SetPlayerPos when it should ne three, so remove the ",268" and you're good to go




Re: Warnings. - SpikeSpigel - 02.07.2015

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
You're using 4 arguments at SetPlayerPos when it should ne three, so remove the ",268" and you're good to go

No-. It is not that.

That way not working to.

Код:
        if(PlayerToPoint(playerid, 9,1726.8235,-1635.9755,20.2169))  // telefoane 
        { 
            SetPlayerPos(playerid, 1004.6429,51.9789,55.3221,268); 
            TogglePlayerControllable(playerid, 0); 
            SetTimerEx("Unfreezeren", 2500, false, "i", playerid); 
            SetPlayerInterior(playerid,1); 
        }



Re: Warnings. - Monotox - 02.07.2015

Код:
 if(IsPlayerInRangeOfPoint(playerid,1726.8235,-1635.9755,20.2169))  // telefoane 
        { 
            SetPlayerPos(playerid, 1004.6429,51.9789,55.3221); 
            TogglePlayerControllable(playerid, 0); 
            SetTimerEx("Unfreezeren", 2500, false, "i", playerid); 
            SetPlayerInterior(playerid,1); 
        }



Re: Warnings. - IceBilizard - 02.07.2015

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 9,1726.8235,-1635.9755,20.2169))  // telefoane
        {
            SetPlayerPos(playerid, 1004.6429,51.9789,55.3221);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreezeren", 2500, false, "i", playerid);
            SetPlayerInterior(playerid,1);
        }



Re: Warnings. - !damo!spiderman - 02.07.2015

Quote:
Originally Posted by SpikeSpigel
Посмотреть сообщение
No-. It is not that.

That way not working to.

Код:
        if(PlayerToPoint(playerid, 9,1726.8235,-1635.9755,20.2169))  // telefoane 
        { 
            SetPlayerPos(playerid, 1004.6429,51.9789,55.3221,268); 
            TogglePlayerControllable(playerid, 0); 
            SetTimerEx("Unfreezeren", 2500, false, "i", playerid); 
            SetPlayerInterior(playerid,1); 
        }
He's correct though, you do have too many arguments for SetPlayerPos

Код:
        if(PlayerToPoint(playerid, 9,1726.8235,-1635.9755,20.2169))  // telefoane 
        { 
            SetPlayerPos(playerid, 1004.6429,51.9789,55.3221); 
            TogglePlayerControllable(playerid, 0); 
            SetTimerEx("Unfreezeren", 2500, false, "i", playerid); 
            SetPlayerInterior(playerid,1); 
        }