Stay within the world boundaries error!
#1

Hi I am a newbie Jst started learning scripting few months back and I found this Error that eats my brian can anyone help me



Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <float>
#include <file>
#include <core>
#include <datagram>
#pragma tabsize 0
new Text:welcomeText;

main()
{
	print("\n STS 2013");
	print(" Trucking Build 1");
	print("VETERAN\n");
}


public OnGameModeInit()
{

   welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");

 SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	CreateObject(13595, -1398.453125, 995.796875, 1057.445313, 0, 0, 0);
CreateObject(13596, -1312.460938, 998.460938, 1068.429688, 0, 0, 0);
CreateObject(13597, -1440.015625, 998.460938, 1068.429688, 0, 0, 0);
CreateObject(13598, -1398.453125, 111.312500, 1060.812500, 0, 0, 0);
CreateObject(13599, -1295.750000, 112.523438, 1036.335938, 0, 0, 0);
CreateObject(13600, -1312.460938, 113.976563, 1068.429688, 0, 0, 0);
CreateObject(13601, -1440.015625, 113.976563, 1068.429688, 0, 0, 0);
CreateObject(13602, -1448.679688, 182.609375, 1035.320313, 0, 0, 0);
CreateObject(13611, -1292.367188, 1030.593750, 1035.601563, 0, 0, 0);
CreateObject(13612, -1398.460938, 995.640625, 1024.460938, 0, 0, 0);
CreateObject(13613, -1330.234375, 938.273438, 1035.265625, 0, 0, 0);
CreateObject(13614, -1522.765625, 972.851563, 1038.351563, 0, 0, 0);
CreateObject(13615, -1290.445313, 962.546875, 1035.382813, 0, 0, 0);
CreateObject(13616, -1328.843750, 1059.273438, 1035.492188, 0, 0, 0);
CreateObject(13617, -1469.406250, 933.460938, 1038.539063, 0, 0, 0);
CreateObject(13618, -1497.531250, 1038.289063, 1035.500000, 0, 0, 0);
CreateObject(13619, -1390.492188, 1069.929688, 1035.265625, 0, 0, 0);
CreateObject(13620, -1404.281250, 932.843750, 1035.226563, 0, 0, 0);
CreateObject(13621, -1448.679688, 1067.093750, 1035.320313, 0, 0, 0);
CreateObject(13627, -1448.679688, 182.609375, 1035.320313, 0, 0, 0);
CreateObject(13651, -1404.281250, 932.843750, 1035.226563, 0, 0, 0);
CreateObject(13652, -1404.281250, 932.843750, 1035.226563, 0, 0, 0);
CreateObject(13653, -1398.453125, 995.796875, 1060.812500, 0, 0, 0);
CreateObject(13656, -1399.695313, 997.875000, 1011.203125, 0, 0, 0);
CreateObject(6885, 2272.390625, 1833.21875, 9.8203125, 0, 0, 0);
CreateObject(18450, -648.79998779297, 605.20001220703, 15.699999809265, 0, 0, 248);
CreateObject(8040, 1677.4296875, 1301.8359375, 10.5859375, 0, 0, 0);
CreateObject(8040, -674.20001220703, 536.59997558594, 17.200000762939, 0, 0, 70);
CreateObject(1231, -668.09997558594, 553.70001220703, 19.299999237061, 0, 0, 348);
CreateObject(1231, -670.40002441406, 546.40002441406, 19.299999237061, 0, 0, 0);
CreateObject(1231, -673.59997558594, 538.79998779297, 19.299999237061, 0, 0, 0);
CreateObject(1231, -676.09997558594, 531.20001220703, 19.299999237061, 0, 0, 0);
CreateObject(1231, -679, 523.79998779297, 19.299999237061, 0, 0, 0);
CreateObject(1231, -680.90002441406, 518.5, 19.299999237061, 0, 0, 0);
CreateObject(7388, -627.70001220703, 638.40002441406, 16.200000762939, 0, 0, 0);
CreateObject(8640, 2521.0859375, 1823.21875, 15.7265625, 0, 0, 0);
CreateObject(1384, 385.39999389648, 899.29998779297, 104.80000305176, 0, 0, 74);
CreateObject(3214, 381.29998779297, 895.70001220703, 30.39999961853, 0, 0, 0);
CreateObject(3472, -584.90002441406, 632.20001220703, 15.800000190735, 0, 0, 0);
CreateObject(3472, -599.09997558594, 638.59997558594, 15.800000190735, 0, 0, 0);
CreateObject(3472, -616.20001220703, 646.5, 15.800000190735, 0, 0, 0);
CreateObject(3472, -635.09997558594, 654.79998779297, 15.800000190735, 0, 0, 0);
CreateObject(3472, -571.09997558594, 626.20001220703, 15.800000190735, 0, 0, 0);
CreateObject(3472, -559.59997558594, 620.59997558594, 15.800000190735, 0, 0, 0);
CreateObject(3472, -548.59997558594, 616.59997558594, 15.800000190735, 0, 0, 0);
CreateObject(3472, -538.29998779297, 611.5, 15.89999961853, 0, 0, 0);
CreateObject(3472, -524.59997558594, 605.29998779297, 15.89999961853, 0, 0, 0);
CreateObject(8380, 1785.1640625, 723.3671875, 14.9609375, 0, 0, 0);
CreateObject(8380, 1785.1640625, 723.3671875, 14.9609375, 0, 0, 0);
CreateObject(8380, 1785.1640625, 723.3671875, 14.9609375, 0, 0, 0);
CreateObject(3864, 356.10000610352, 848.59997558594, 25.200000762939, 0, 0, 330);
CreateObject(3864, 376.39999389648, 867.79998779297, 25.5, 0, 0, 320);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{

 TextDrawShowForPlayer(playerid,welcomeText);
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

   if(!strcmp(cmdtext, "/Dirt1"))
   {
       SendClientMessage(playerid, 0xFA0021FF, "Welcome to Dirtbike stadium");
       return 1;
   }

   if(!strcmp(cmdtext, "/Dirt1"))
   {
       if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       {
       }
       else
       {
       }
       SendClientMessage(playerid,0xFA0021FF , "Welcome to Dirtbike stadium");
       return 1;
   }


   return 0;


}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}

The best possible solution will be +rep
Reply


Messages In This Thread
Stay within the world boundaries error! - by VET - 02.02.2013, 06:20
Re: Stay within the world boundaries error! - by Lumixa - 02.02.2013, 06:53
Re: Stay within the world boundaries error! - by MicroD - 02.02.2013, 06:54
Re: Stay within the world boundaries error! - by MrRollexo - 02.02.2013, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)