x_x....unable to load FS - 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: x_x....unable to load FS (
/showthread.php?tid=114791)
x_x....unable to load FS -
Anthony_Brassi - 20.12.2009
pawn Код:
#include <a_samp>
#pragma tabsize 0
#define COLOR_MYCOLOR 0xF6F600AA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_RED 0x1BBB91AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#include <Streamer>
new TutP;
public OnGameModeInit()
{
TutP = CreateDynamicPickup(1247, 23, 3492.2024,-887.9794,44.5579, 3);//
return 1;}
forward Tut1(playerid);
public Tut1(playerid)
{
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, COLOR_DBLUE, "...");
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == TutP)
{
SetPlayerCameraLookAt(playerid,3492.2024,-887.9794,44.5579);
SetPlayerCameraPos(playerid,3488.6433,-890.0203,47.1753);
SendClientMessage(playerid, COLOR_DBLUE, "...!");
SetTimer("Tut1", 5000, 0);
}
}
no errors....just wont load...any suggestions?
EDIT: btw...making a tut when u pickup a marker..
Re: x_x....unable to load FS -
Marcel - 20.12.2009
Change OnGameModeInit to OnFilterScriptInit.
Re: x_x....unable to load FS -
Anthony_Brassi - 20.12.2009
Quote:
Originally Posted by Marcel
Change OnGameModeInit to OnFilterScriptInit.
|
it works...thanks, but my pickup is messed up

....cant pick it up xD
Re: x_x....unable to load FS -
Marcel - 20.12.2009
Change OnPlayerPickUpPickup to OnPlayerPickUpDynamicPickup, that's because you're using a streamer.
Re: x_x....unable to load FS -
Anthony_Brassi - 20.12.2009
Oh, Duh!!! how could i 4get that
Quote:
C:\Users\Owner\Desktop\samp03asvr_win32\pawno\tut. pwn(34) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpDynamicPickup")
|