SA-MP Forums Archive
<<<<<<<<please help >>>>>>>>> - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: <<<<<<<<please help >>>>>>>>> (/showthread.php?tid=270437)



<<<<<<<<please help >>>>>>>>> - MA_proking - 20.07.2011

pawn Код:
LoadObjectsForPlayer(playerid,2000);
When I put this in my gm it shows error that
Код:
LoadObjectsForPlayer not define



Re: <<<<<<<<please help >>>>>>>>> - Jay. - 20.07.2011

Thats not a sa-mp function.

It's telling you it's not defined as like above, it's not a function.

You need the code for it to work , it was probably a stock or something.
If not you can show your function.


Re: <<<<<<<<please help >>>>>>>>> - MA_proking - 20.07.2011

so how to do that any alternative


Re: <<<<<<<<please help >>>>>>>>> - Jay. - 20.07.2011

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
so how to do that any alternative
This is from my gm: (I didn't make it)
pawn Код:
//somewhere
public DynUpdateStart(playerid) // Shurty40
{  
    TogglePlayerControllable(playerid, false);
    new string[128];
    format(string, sizeof(string), "~w~Objects~n~~r~Loading");
    GameTextForPlayer(playerid, string, 3000, 6);
    PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
    if(GetPlayerPing(playerid) < 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
    else if(GetPlayerPing(playerid) > 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
    else if(GetPlayerPing(playerid) > 200) { SetTimerEx("DynUpdateEnd", 2200, 0,"e",playerid); }
    else if(GetPlayerPing(playerid) > 300) { SetTimerEx("DynUpdateEnd", 2700, 0,"e",playerid); }
    else if(GetPlayerPing(playerid) > 500) { SetTimerEx("DynUpdateEnd", 3000, 0,"e",playerid); }
    return 1;
}
and
pawn Код:
public DynUpdateEnd(playerid) // Shurty40
{
    TogglePlayerControllable(playerid, true);
    new string[128];
    format(string, sizeof(string), "~w~Objects~n~~r~Loaded!");
    GameTextForPlayer(playerid, string, 3000, 6);
    PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
    return 1;
}
I think thats what you want ?

Just use

DynUpdateStart(playerid);


Re: <<<<<<<<please help >>>>>>>>> - MA_proking - 20.07.2011

Код:
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(1600) : warning 235: public function lacks forward declaration (symbol "DynUpdateStart")
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(1614) : warning 235: public function lacks forward declaration (symbol "DynUpdateEnd")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
showing this


Re: <<<<<<<<please help >>>>>>>>> - Jay. - 20.07.2011

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
Код:
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(1600) : warning 235: public function lacks forward declaration (symbol "DynUpdateStart")
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(1614) : warning 235: public function lacks forward declaration (symbol "DynUpdateEnd")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
showing this
pawn Код:
forward DynUpdateStart(playerid);
Before public DynUpdateStart


Re: <<<<<<<<please help >>>>>>>>> - MA_proking - 20.07.2011

Thanks It works