SA-MP Forums Archive
Error STAY WITHIN THE WORLD BOUNDRIES :| .. - 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: Error STAY WITHIN THE WORLD BOUNDRIES :| .. (/showthread.php?tid=454847)



Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 30.07.2013

Hi everyone.
I put a gamemode on the server and when I go on it says this:
I do not know what to do or where to go to fix.



Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - -Prodigy- - 30.07.2013

Put an AddPlayerClass in OnGameModeInit


Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 30.07.2013

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
Put an AddPlayerClass in OnGameModeInit
Give me the script please 3


Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - Konstantinos - 30.07.2013

Quote:
Originally Posted by radiobizza
Посмотреть сообщение
Give me the script please 3
****** it: samp AddPlayerClass

and add one of the lines into OnGameModeInit. It's not that hard!


Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 30.07.2013

Is good this ?
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);


Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - Konstantinos - 30.07.2013

Yes.

Make sure it's inside OnGameModeInit callback like the example is shown in the WIKI.


Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 30.07.2013

Everything shows me.
I put this:
PHP код:
public OnGameModeInit()
{
    
AddPlayerClass(01958.331343.1215.36269.1526362815000);
    
SetTimer("Counter",1000,1);
    ... 



Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 31.07.2013

I make good?
PHP код:
public OnGameModeInit()
{
    
AddPlayerClass(01958.331343.1215.36269.1526362815000);
    
SetTimer("Counter",1000,1);
    ... 



Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - radiobizza - 31.07.2013

I found something..
On OnGameModeInit()
PHP код:
    for(new 0<= sizeof(Peds)-1i++)
    {
        
AddPlayerClass(23,2494.6816,-1671.1151,-7.5721,271.3298,-1,-1,-1,-1,-1,-1);
    } 



Re: Error STAY WITHIN THE WORLD BOUNDRIES :| .. - SuperViper - 31.07.2013

Just put a blank AddPlayerClass with 0 as the parameters if you already have the rest of your spawning system worked out. At least 1 class is required or SA-MP will do that weird thing.