[HELP] Random spawn
#1

Код:
E:\DOCUME~1\***(2802) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(2810) : error 010: invalid function or declaration
E:\DOCUME~1\***(4881) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(4881) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(4881) : warning 215: expression has no effect
E:\DOCUME~1\***(4881) : error 001: expected token: ";", but found "new"
E:\DOCUME~1\***(4881) : fatal error 107: too many error messages on one line
pawn Код:
new Float:NasumicniSpawnovi[][] =
{
 {1084.9664, -2518.1167, 1.1016, 88.0068}, // Line 2802
 {1087.1836, -2536.8586, 1.1016, 31.4614},
 {1061.6191, -2537.8057, 1.1016, 347.7392},
 {1046.4530, -2538.0969, 1.1016, 303.4138},
 {1049.8467, -2523.8333, 1.1016, 265.3318},
 {1043.8545, -2498.7151, 1.1016, 229.6114},
 {1056.5961, -2498.0090, 1.1016, 178.2243},
 {1067.9542, -2498.2959, 1.1016, 179.4776}
};// Line 2810

SetPlayerSpawn:
pawn Код:
if(IgraCS[playerid] == true)
        {
            new spawn = random(sizeof(NasumicniSpawnovi)); // Line 4881
        SetPlayerPos(playerid, NasumicniSpawnovi[spawn][0], NasumicniSpawnovi[spawn][1], NasumicniSpawnovi[spawn][2]);
            SetPlayerFacingAngle(playerid, NasumicniSpawnovi[spawn][3]);
            return 1;
        }
How to fix that errors?
Reply
#2

pawn Код:
new Float:NasumicniSpawnovi[8][4] =
{
 {1084.9664, -2518.1167, 1.1016, 88.0068}, // Line 2802
 {1087.1836, -2536.8586, 1.1016, 31.4614},
 {1061.6191, -2537.8057, 1.1016, 347.7392},
 {1046.4530, -2538.0969, 1.1016, 303.4138},
 {1049.8467, -2523.8333, 1.1016, 265.3318},
 {1043.8545, -2498.7151, 1.1016, 229.6114},
 {1056.5961, -2498.0090, 1.1016, 178.2243},
 {1067.9542, -2498.2959, 1.1016, 179.4776}
};// Li
Try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)