Unusual error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unusual error (
/showthread.php?tid=280924)
Unusual error -
SantarioLeone - 03.09.2011
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.
Re: Unusual error -
=WoR=Varth - 03.09.2011
Do you have sscanf in your plugin folder?
Re: Unusual error -
SantarioLeone - 03.09.2011
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.
Re: Unusual error -
=WoR=Varth - 03.09.2011
Do you know you have have to use and put .so if you use linux?
Re: Unusual error -
SantarioLeone - 03.09.2011
Im not using Linux, im using Windows Vista, but running everything in Windows XP Compatibility.