[HELP] Setting Random Player Spawn Locations
#3

Quote:
Originally Posted by [XG
Lj ]
pawn Код:
new Float:gRandomSpawns[2][3] = // add one on to each of the numbers to add more options.
{
    {X, Y, Z},
    {X, Y, Z}
};

public OnPlayerSpawn(playerid)
{
    new rand = random(sizeof(gRandomSpawns));
    SetPlayerPos(playerid, gRandomSpawns[rand][0], gRandomSpawns[rand][1], gRandomSpawns[rand][2]);
    return 1;
}
C:\Users\Chris\Desktop\Server\gamemodes\untitled.p wn(832) : error 001: expected token: "}", but found "{"
C:\Users\Chris\Desktop\Server\gamemodes\untitled.p wn(834) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\Server\gamemodes\untitled.p wn(834) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

^^^^^^^^^^^on compile, i still dont get it!!

i have added the x, y and z co-ords, but still im SO pissed off it doesnt work, please help!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)