16.08.2015, 11:15
Quote:
CMD:vehcolor(playerid,params []){
new color1,color2; if(sscanf(params,"dd", color1,color2)) return SendClientMessage(playerid, -1,"Usage: /vehcolor [color1] [color2]"); new currentveh = GetPlayerVehicleID(playerid); if(color1 > 255) return SendClientMessage(playerid,-1,"Invalid color id. "); if(color1 < 0 ) return SendClientMessage(playerid, -1, "Invalid color id."); if(color2 > 255) return SendClientMessage(playerid,-1,"Invalid color id. "); if(color2 < 0 ) return SendClientMessage(playerid, -1, "Invalid color id."); ChangeVehicleColor(currentveh,color1,color2); return 1; } |
Код:
C:\Users\Damman\Desktop\SA-MP Test\gamemodes\edrift2.pwn(24780) : error 029: invalid expression, assumed zero C:\Users\Damman\Desktop\SA-MP Test\gamemodes\edrift2.pwn(24780) : error 017: undefined symbol "cmd_vehcolor" C:\Users\Damman\Desktop\SA-MP Test\gamemodes\edrift2.pwn(24780) : error 029: invalid expression, assumed zero C:\Users\Damman\Desktop\SA-MP Test\gamemodes\edrift2.pwn(24780) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.