pickup problem -
XxXBr0nXxX - 17.06.2018
Hello
I have a problem with the pickups
if I put them in these coordinates 2404.6521,4363.0576,15.3509 and 2418.7351,4385.4609,15.3509 they do not appear
while I put them in other parts appear
the place in question is this
how do I solve
Re: pickup problem -
TheBeastKhan - 17.06.2018
Is this an interior? + Give your complete code of pickup!
Re: pickup problem -
XxXBr0nXxX - 17.06.2018
no it'isnt
new vinci1,vinci2;
vinci1 = CreatePickup(1318,2, 2404.6521,4363.0576,15.3509, -1); //fine
vinci2 = CreatePickup(1318,2, 2418.7351,4385.4609,15.3509, -1); //fine
if(pickupid == vinci1)
{
GameTextForPlayer(playerid, "~g~$+10.000 +25 score!", 2000, 0);
GivePlayerMoney(playerid, 10000);
SetPlayerScore(playerid, GetPlayerScore(playerid)+25);
allspawn(playerid);
return 1;
}
if(pickupid == vinci2)
{
GameTextForPlayer(playerid, "~g~$+10.000 +25 score!", 2000, 0);
GivePlayerMoney(playerid, 10000);
SetPlayerScore(playerid, GetPlayerScore(playerid)+25);
allspawn(playerid);
return 1;
}
Re: pickup problem -
TheBeastKhan - 17.06.2018
Atleast,
to give your code and tell the place where you have placed these, Is it a FS or GM, If GM what place?
+ I think you are using a command to go a place like this, Is there SetPlayerVirtualWorld on that command?
Re: pickup problem -
GTLS - 17.06.2018
What location is it? I mean on Map. Also, try putting VW as 0. The last parameter.
You can also try is, that after creating it, on GameModeInit, printf() the valie of vinci1 and vinci2. If its -1 means CreatePickup returned -1 means, there's some problem there.