[SOLVED]Undefined symbols.
#1

Код:
(809) : error 017: undefined symbol "GetVehicleModelIDFromName"
(817) : error 017: undefined symbol "GetXYInFrontOfPlayer"
(821) : error 017: undefined symbol "GetXYInFrontOfPlayer"
I made my Admin FS but i am getting these errors.
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;
}
Reply
#2

simple;

"GetVehicleModelIDFromName"
&
"GetXYInFrontOfPlayer"

are not included in the script.
Reply
#3

So.. how to fix it.?
Reply
#4

You have to find these functions somewhere.. Or make your own
Reply
#5

It was already solved :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)