Unusual error
#1

I Recently decided to make a RP script from scratch and start scripting after reading tutorials, and editing other game modes. I came across an error that i cant seem to fix, and have no idea why this is happening as its unusaul and i cant find an error like it on the forum through the search tool bar.

I was trying to script in a simple Vehicle Spawner command.
Pawn Code Below
pawn Код:
CMD:veh(playerid, params[])
    {
    new vehid;
    if(sscanf(params, "i", vehid)) SendClientMessage(playerid, COLOR_GREY, "SYNTAX: /veh <carid>");
    else if (vehid < 400 || vehid > 611) SendClientMessage(playerid, COLOR_GREY, "[ERROR] Invalid car id! [ Car ID's range from 400 - 611 ]");
    else
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    CreateVehicle(vehid, x + 3, y, z, 0, 0,0, -1);
    SendClientMessage(playerid, COLOR_GREEN, "Car spawned at your location!");
    }
  return 1;
}
It complies in my script perfectly no errors what so ever. When i start my server the console gives me the dreaded Error 19 File/Function Cant be found. But if i remove my Vehicle Spawner command. And start the server. There no console error, and everything works perfectly. I dont understand what could be wrong with it. or my Command.
Reply
#2

Do you have sscanf in your plugin folder?
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Do you have sscanf in your plugin folder?
Yes i have the plugin in the correct folder, as well as the correct Includes. I also just tried to add a Kick command and it does the same thing, but when i remove the kick cmd everything is fine.
Reply
#4

Do you know you have have to use and put .so if you use linux?
Reply
#5

Im not using Linux, im using Windows Vista, but running everything in Windows XP Compatibility.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)