Error :(
#1

Код:
C:\Documents and Settings\Usuario\Desktop\samp02Xserver.win32\gamemodes\Derby.pwn(221 -- 226) : error 033: array must be indexed (variable "gHayDerbySpawns")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
if(HayMap == 1) {
  gHayDerbySpawns[playerid] = CreateVehicle(457,
                        gHayDerbySpawns[playerid][0],
                        gHayDerbySpawns[playerid][1],
                        gHayDerbySpawns[playerid][2],
                        gHayDerbySpawns[playerid][3],
                        1,1,10);

  PutPlayerInVehicle(playerid,gPlayerVehicles[playerid],0); }
Reply
#2

You need to change the
pawn Код:
gHayDerbySpawns[playerid] = CreateVehicle(457,
with
pawn Код:
gHayDerbySpawns[playerid][A NUMBER]
Reply
#3

What do you mean with: A NUMBER ?
cause I have this on top of script:

Код:
new Float:gHayDerbySpawns[15][4] = {
{-64.3226,2507.1104,41.8612,1.5655},
{-64.2494,2503.7014,41.8612,179.3153},
{-65.5000,2459.6333,41.9392,1.4375},
{-63.5000,2459.6333,41.9390,1.3741},
{-61.5000,2459.6333,41.9392,359.123},
{-59.5000,2459.6333,41.9392,358.9992},
{-67.1832,2459.5774,41.9392,0.1945},
{-69.5372,2459.6333,41.9392,359.2886},
{-48.6281,2519.6970,41.8612,179.3180},
{-48.7803,2487.9575,41.8612,359.1499},
{-79.3913,2487.6426,41.8612,2.0167},
{-79.4586,2520.1411,41.8612,180.1167},
{-67.8417,2503.8047,41.8612,90.4931},
{-64.3236,2500.3169,41.8612,179.4551},
{-61.0067,2503.6768,41.8612,269.7313}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)