Error 017: undefined symbol "vehicle"
#7

So basically, you want to spawn a certain vehicle in your place? If so:
pawn Код:
CMD:aveh(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new type,color,color2,Float:cPos[4];
    if(sscanf(params, "iii", type,color,color2) return SendClientMessage(playerid,COLOR_RED, "/aveh [model] [color] [color]");
    if(type < 400 || type > 611) return SendClientMessage(playerid,COLOR_RED, "vehicle IDs between 400 - 611!");
    if(color> 255 || color< 0) return SendClientMessage(playerid, 0xFFFFFF, "Car color ID's: 0-255");
    if(color2> 255 || color2< 0) return SendClientMessage(playerid, 0xFFFFFF, "Car color ID's: 0-255");
    GetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
    GetPlayerFacingAngle(playerid, cPos[3]);
    CreateVehicle(type, cPos[0], cPos[1]-3, cPos[2], cPos[3], color, color2, -1);
    return 1;
}
Reply


Messages In This Thread
Error 017: undefined symbol "vehicle" - by Smikkeltoetje - 22.01.2013, 00:37
Re: Error 017: undefined symbol "vehicle" - by Neil. - 22.01.2013, 00:40
Re: Error 017: undefined symbol "vehicle" - by SuperViper - 22.01.2013, 00:43
Re: Error 017: undefined symbol "vehicle" - by Smikkeltoetje - 22.01.2013, 00:43
Re: Error 017: undefined symbol "vehicle" - by Neil. - 22.01.2013, 00:47
Re: Error 017: undefined symbol "vehicle" - by Smikkeltoetje - 22.01.2013, 00:51
Re: Error 017: undefined symbol "vehicle" - by Neil. - 22.01.2013, 00:54

Forum Jump:


Users browsing this thread: 2 Guest(s)