17.05.2009, 00:53
Okay, I need help with my /veh command.
I add it to the list of my commands and I get this.
I'm a noobie coder and have no idea how to fix.
Here's my original /veh code.
I add it to the list of my commands and I get this.
Код:
C:\Users\Tj\Desktop\SA\Otaku Outbreak\pawno\crp.pwn(7618) : error 017: undefined symbol "IsValidvehicleModel" C:\Users\Tj\Desktop\SA\Otaku Outbreak\pawno\crp.pwn(7618) : error 017: undefined symbol "model" C:\Users\Tj\Desktop\SA\123\pawno\crp.pwn(7622) : error 017: undefined symbol "IsValidvehicleModel" C:\Users\Tj\Desktop\SA\123\pawno\crp.pwn(7629) : error 017: undefined symbol "x" C:\Users\Tj\Desktop\SA\123\pawno\crp.pwn(7630) : error 017: undefined symbol "x" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Here's my original /veh code.
pawn Код:
if(!strcmp(cmd,"/veh",true))
{
if(IsValidvehicleModel(model)) return model>=400&&model<611;
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
new car=strval(cmd);
if(!IsValidvehicleModel(strval(cmd))) return SendClientMessage(playerid,COLOR_GREY,"Invalid vehicle ID.");
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
new color1=strval(cmd);
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
new color2=strval(cmd);
GetPlayerPos(playerid,x,y,z);
return CreateVehicle(car,x,y,z,0.0,color1, color2,-1);
}