Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Loot
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.
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); } }
|
Thats basically the same EXACT thing... Thanks anyway but, the enum is for replacing the number, well not replace but just take place as the numbers... So X = 0, Y = 1, and Z = 2... R is for my random spawns... They just make it easier for a noob scripter to understand, I am eventually releasing this, so im making it for beginners...