27.02.2012, 21:05
I have this line of script at the top of my filterscript:
But when i do this:
I get undefined errors:
Quote:
new DETWASH,DETHUNT,SWATENFORCE,SWATWASH,SWATRANCH,FBI RANCH,FBIPRE,EMSAMBU,EMSRANCH,EMSAIR,CORBUS,CORTRA NS,DMV,FDENG,FDAMBU,FDRANCH; |
Quote:
new vehicle; vehicle = GetPlayerVehicleID(playerid); if (vehicle == DETWASH) { SendClientMessage(playerid,0x828282FF,"Vehicle:Was hington Owner: SAPD DET"); } if (vehicle == DETHUNT) { SendClientMessage(playerid,0x828282FF,"Vehicle:Hun tley Owner: SAPD DET"); } if (vehicle == SWATENFORCE) { SendClientMessage(playerid,0x828282FF,"Vehicle:Enf orcer Owner: SWAT"); } if (vehicle == SWATWASH) { SendClientMessage(playerid,0x828282FF,"Vehicle:Was hington Owner: SWAT"); } if (vehicle == SWATRANCH) { SendClientMessage(playerid,0x828282FF,"Vehicle:Fed eral Rancher Owner: SWAT"); } if (vehicle == FBIRANCH) { SendClientMessage(playerid,0x828282FF,"Vehicle:Fed eral Rancher Owner: FBI"); } if (vehicle == FBIPRE) { SendClientMessage(playerid,0x828282FF,"Vehicle:Fed eral Rancher Owner: FBI"); } if (vehicle == EMSAMBU) { SendClientMessage(playerid,0x828282FF,"Vehicle:Amb ulance Owner: FDSA EMS"); } if (vehicle == EMSAIR) { SendClientMessage(playerid,0x828282FF,"Vehicle:Rai ndance Owner: FDSA EMS"); } if (vehicle == CORBUS) { SendClientMessage(playerid,0x828282FF,"Vehicle:Bus Owner: Corrections"); } if (vehicle == CORTRANS) { SendClientMessage(playerid,0x828282FF,"Vehicle:Sec uricar Owner: Corrections"); } if (vehicle == DMV) { SendClientMessage(playerid,0x828282FF,"Vehicle:Man ana Owner: DMV"); } if (vehicle == FDENG) { SendClientMessage(playerid,0x828282FF,"Vehicle:Fir e Engine Owner: FDSA"); } if (vehicle == FDAMBU) { SendClientMessage(playerid,0x828282FF,"Vehicle:Amb ulance Owner: FDSA EMS"); } if (vehicle == FDRANCH) { SendClientMessage(playerid,0x828282FF,"Vehicle:Fed eral Rancher Owner: FDSA"); } |
Quote:
C:/ Scripts\Filterscripts\vehicles.pwn(153) : error 017: undefined symbol "DETWASH" D:\Scripts\Filterscripts\vehicles.pwn(157) : error 017: undefined symbol "DETHUNT" D:\Scripts\Filterscripts\vehicles.pwn(161) : error 017: undefined symbol "SWATENFORCE" D:\Scripts\Filterscripts\vehicles.pwn(165) : error 017: undefined symbol "SWATWASH" D:\Scripts\Filterscripts\vehicles.pwn(169) : error 017: undefined symbol "SWATRANCH" D:\Scripts\Filterscripts\vehicles.pwn(173) : error 017: undefined symbol "FBIRANCH" D:\Scripts\Filterscripts\vehicles.pwn(177) : error 017: undefined symbol "FBIPRE" D:\Scripts\Filterscripts\vehicles.pwn(181) : error 017: undefined symbol "EMSAMBU" D:\Scripts\Filterscripts\vehicles.pwn(185) : error 017: undefined symbol "EMSAIR" D:\Scripts\Filterscripts\vehicles.pwn(189) : error 017: undefined symbol "CORBUS" D:\Scripts\Filterscripts\vehicles.pwn(193) : error 017: undefined symbol "CORTRANS" D:\Scripts\Filterscripts\vehicles.pwn(197) : error 017: undefined symbol "DMV" D:\Scripts\Filterscripts\vehicles.pwn(201) : error 017: undefined symbol "FDENG" D:\Scripts\Filterscripts\vehicles.pwn(205) : error 017: undefined symbol "FDAMBU" D:\Scripts\Filterscripts\vehicles.pwn(209) : error 017: undefined symbol "FDRANCH" |