Jetpack problem
#1

I've tried twenty times without any luck..
Could anybody tell me how to spawn a jetpack?
Quote:

Everytime i add a jetpack or something like this =
if(strcmp(cmdtext,"/jetpack",true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,2,X,Y,Z);
SendClientMessage(playerid, COLOR_GREY, "* Spawned jetpack");
return 1;
}

I get errors when i compile, or just by doing this basic one
Quote:

CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);

I still get errors, is it under OnGameModeInIt ?

Quote:

public OnGameModeInit()
{
if(fexist("SAGC/Other/JoinCounter.cfg"))
{
JoinCounter = dini_Int("SAGC/Other/JoinCounter.cfg", "Connections");
printf("file \"JoinCounter.txt\" located, variable JoinCounter loaded (%d visitors)", JoinCounter);
}
else
{
dini_Create("SAGC/Other/JoinCounter.cfg");
dini_IntSet("SAGC/Other/JoinCounter.cfg", "Connections", 0);
print("file \"SAGC/Other/JoinCounter.cfg\" created with JoinCounter variable (0 visitors)");
}

Could anybody put the code in there then, seriously I've got headache because off this
Reply


Messages In This Thread
Jetpack problem - by Guso - 11.11.2009, 15:00
Re: Jetpack problem - by Karlip - 11.11.2009, 15:01
Re: Jetpack problem - by (.Aztec); - 11.11.2009, 15:26
Re: Jetpack problem - by Guso - 11.11.2009, 19:53
Re: Jetpack problem - by omer5198 - 05.03.2011, 10:11
Re: Jetpack problem - by Facepunch - 24.07.2011, 19:23
Re: Jetpack problem - by Shockey HD - 24.07.2011, 20:02
Re: Jetpack problem - by VitalRP - 24.07.2011, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)