20.01.2013, 16:40
I get 5 erros while trying to add this cmd to avs car script[if it possible]
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1322) : error 017: undefined symbol "MAX_PLAYERVEHICLES"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 017: undefined symbol "PlayerVehicleInfo"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : warning 215: expression has no effect
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 001: expected token: ";", but found "]"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
please help ty=]
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1322) : error 017: undefined symbol "MAX_PLAYERVEHICLES"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 017: undefined symbol "PlayerVehicleInfo"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : warning 215: expression has no effect
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 001: expected token: ";", but found "]"
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\Test Sever\filterscripts\avs.pwn(1324) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Код HTML:
CMD:mycars(playerid) { SendClientMessage(playerid, COLOR_WHITE, "|___Your vehicles:___|"); new string[60]; for(new v = 0; v < MAX_PLAYERVEHICLES; v++) { if(PlayerVehicleInfo[playerid][v][pvModelId]) { format(string, sizeof(string),"Number of cars: %d | Vehicle Limit: %d",GetPVarInt(playerid, "MaxCars")); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } format(string, sizeof(string),"Number of cars: %d | Vehicle Limit: %d",GetPVarInt(playerid, "MaxCars"); SendClientMessage(playerid, COLOR_WHITE, string); return 1; }