03.09.2011, 15:48
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
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.
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;
}