Pikup problem!
#1

I have maped a small town on the sea, and i try to put some pickup's and why ther dont displayed?

PHP код:
new SC;
new 
LS;
public 
OnGameModeInit()
{
    
SC CreatePickup(1274,23,2041.3683,-5356.7188,13.1371,0);//SC karte
    
LS CreatePickup(1274,23,1685.6185,-2333.7290,-2.6797,0);
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if (
pickupid == SC)
    {
    
ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Dobrodosli na SAN City Aerodrom","Karta za San Fierro (200$)\nKarta za Los Santos (100$)\nKarta za Las Venturas (250$)","Uredu","Prekid");
    }
    if (
pickupid == LS)
    {
    
ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Dobrodosli na Los Santos Aerodrom","Karta za San Fierro (250$)\nKarta za SAN City (150$)\nKarta za Las Venturas (300$)","Uredu","Prekid");
    }
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 4)
    {
        if(
response)
        {
            if(
listitem == 0)//sf
            
{
            
            }
             if(
listitem == 1)// ls
            
{
            
SetPlayerPos(playerid,1685.6185,-2333.7290,-2.6797);
            
SetPlayerFacingAngle(playerid,175.7893);
            }
            if(
listitem == 2)//lv
               
{
            }
        }
    }
    if(
dialogid == 5)
    {
        if(
response)
        {
            if(
listitem == 0)// sf
            
{
            }
             if(
listitem == 1)// sc
            
{
            
SetPlayerPos(playerid,2041.6514,-5356.6143,11.5561);
            
SetPlayerFacingAngle(playerid,270.2007);
            }
            if(
listitem == 2)// lv
               
{
            }
        }
    }
    return 
1;

here is the code!
Reply
#2

Code?
Reply
#3

Lol, how could we help? Show us your code.
Reply
#4

the pick up dont show :S
Reply
#5

Maybe you are in a different virtualworld.
Reply
#6

You sure you put the right coordinate/virtualworld/model?
Reply
#7

yes the 2. pickup show's normaly!
Reply
#8

Код:
SC = CreatePickup(1274,23,2041.3683,-5356.7188,13.1371,0);
Код:
2041.3683,-5356.7188,13.1371
Код:
-5356.7188
theres the "bug". the coordinate is out of bounds. a pickup beyound -3100 or something wont appear. ever. there is no way around for using a pickup that far away, sry. you need to move your entire map to somewhere else, closer to the regular map...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)