17.06.2018, 14:27
pickup problem
17.06.2018, 15:31
Is this an interior? + Give your complete code of pickup!
17.06.2018, 16:43
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;
}
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;
}
17.06.2018, 17:32
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?
Код:
Use this
+ I think you are using a command to go a place like this, Is there SetPlayerVirtualWorld on that command?
17.06.2018, 17:40
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.
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.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)