28.04.2011, 13:45
Hello everyone
I am trying to make a bus filterscript and all I have done so far is this:
And after changing the CreateObject parameters I get those errors:
Could someone help me? I don't know what I am doing wrong /=
Thanks
I am trying to make a bus filterscript and all I have done so far is this:
pawn Код:
//Global
enum BusStationsInfo
{
Float: objx,
Float: objy,
Float: objz,
Float: objrx,
Float: objry,
Float: objrz,
Float: cpx,
Float: cpy,
Float: cpz,
location[24],
linesinfo[256]
};
//Also Global (I will add more stations soon,so don't think this is the reason)
new BusStations[][BusStationsInfo] =
{
{ -1984.613281,147.813629,27.966692,0.0,0.0,0.0,9,8,7,"Cranberry Station","Line: 1" }
};
//On OnFilterScriptInit
CreateObject(1257,BusStations[1][objx],BusStations[1][objy],BusStations[1][objz],BusStations[1][objrx],BusStations[1][objry],BusStations[1][objrz]); // Cranberry Station
And after changing the CreateObject parameters I get those errors:
pawn Код:
error 017: undefined symbol "BusStations"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Thanks