Little problem
#1

Getting Error

PHP код:
new pickup1;
pickup1 CreatePickup(12391, -1807.9540,13.0234,350.0199,-1); // ERROR LINE
public OnPlayerPickUpPickup(playeridpickupid)
{
   if(
pickupid == pickup1)
    {
SetPlayerPos(playerid2343.802734375 ,547.4677734375 ,6029.7553710938);
}
return 
1;

Reply
#2

What error?
Reply
#3

Tell us, which error do you receive?
Reply
#4

Damnit guys READ THE CODE...


The pickup creation is in the wrong place...

It's outside of any functions or callbacks.


It needs to be in OnGameModeInit or something equivalent...




Seriously though, OP post the actual output of pawno next time to help us help you.
Reply
#5

Quote:
Originally Posted by ahameed4755
Посмотреть сообщение
Getting Error

PHP код:
new pickup1;
public 
OnGameModeInit()
{
pickup1 CreatePickup(12391, -1807.9540,13.0234,350.0199,-1); //Create an Information
 
return 1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
   if(
pickupid == pickup1)
    {
SetPlayerPos(playerid2343.802734375 ,547.4677734375 ,6029.7553710938);
}
return 
1;

This should work. if u follow it,btw your positions looks longer than usual recheck that.. maybe am wrong about it,but take a look still...after u /save
its:
Quote:

(skin, Float: x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

Look for the x,y,z positions
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)