15.11.2013, 02:13
Why are you using both enum and floats when you can do all at once?
P.S I haven't tested that, so there might be an error.
P.S I haven't tested that, so there might be an error.
pawn Code:
static Float:BoughtSpawns[11][3] =
{
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781),
(132.0000, -67.2844, 3.5781)
};
public OnGameModeInit()
{
for(new i = 0; i < sizeof(BoughtSpawns); i++)
{
BS[i] = CreateDynamicPickup(1313, 1, BoughtSpawns[i][0], BoughtSpawns[i][1], BoughtSpawns[i][2]);
}
return 1;
}
//pickups public
for(new i = 0; i < sizeof(BoughtSpawns); i++)
{
if(IsValidDynamicPickup(i))
{
GameTextForPlayer(playerid, "~l~~h~DO ~g~/buyspawn ~l~~h~TO BUY THIS SPAWN!", 2000, 5);
}
}