23.01.2010, 11:53
Код:
(809) : error 017: undefined symbol "GetVehicleModelIDFromName" (817) : error 017: undefined symbol "GetXYInFrontOfPlayer" (821) : error 017: undefined symbol "GetXYInFrontOfPlayer"
My pawno code: (where the errors are)
pawn Код:
dcmd_v(playerid, params[])
{
new carname[256];
if(pInfo[playerid][level] < 3) return SendClientMessage(playerid,ADMIN,"Sorry, But you aren't a level 3 Admin :D");
if(sscanf(params, "z", carname)) return SendClientMessage(playerid, ADMIN, "Type: /v vehicle name");
new vehicle = GetVehicleModelIDFromName(carname);
if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, ADMIN, "Sorry, But that vehicle name wasn't found");
new Float:x, Float:y, Float:z, Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInAnyVehicle(playerid) == 1)
{
GetXYInFrontOfPlayer(playerid, x, y, 8);
}
else
{
GetXYInFrontOfPlayer(playerid, x, y, 5);
}
new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
new String[265];
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
format(String, sizeof(String), "You succesfully spawned a %s", aVehicleNames[vehicle - 400]);
SendClientMessage(playerid,COLOR_NOTICE,String);
return 1;
}