and the server will be crash too. maybe its pickup code problem?
pawn Код:
new TaxiCompanyEntrance;
new TaxiCompanyExit;
new TaxiLocker;
new TaxiCompanyHelpIcon;
new TaxiCompanyTakeJobIcon;
/* Taxi Company - OnGamemodeinit */
TaxiCompanyEntrance = CreatePickup(1239, 23, 1752.8557,-1903.0541,13.5631, -1);
Create3DTextLabel("Go to this pickup\nto go inside Taxi Company",COLOR_RED,1752.8557,-1903.0541,13.5631,10.0,0);
TaxiCompanyExit = CreatePickup(1239, 23, 1782.4401,-1841.9465,266.3188, -1);
Create3DTextLabel("Go to this pickup\nto exit to Taxi Company",COLOR_RED,1782.4401,-1841.9465,266.3188,10.0,100);
TaxiCompanyTakeJobIcon = CreatePickup(1239, 23, 1780.4270,-1839.9364,266.3261, -1);
Create3DTextLabel("/takejob to apply as Taxi Driver",COLOR_RED,1780.4270,-1839.9364,266.3261,10.0,100);
TaxiCompanyHelpIcon = CreatePickup(1239, 23, 1782.6979,-1839.7697,266.3188, -1);
Create3DTextLabel("Help tips for Taxi Driver",COLOR_RED,1782.6979,-1839.7697,266.3188,10.0,100);
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[1000];
if(pickupid == TaxiCompanyEntrance)
{
if(PlayerInfo[playerid][Job] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Hi "green"mate "white"goto "yellow"Taxi Locker "white"if you need something");
GameTextForPlayer(playerid, "~r~Welcome To ~g~Taxi Company!", 2000,3);
SendClientMessage(playerid,COLOR_WHITE, "_____________ | "blue"Taxi Company "white"| _____________");
SendClientMessage(playerid,COLOR_WHITE," ");
SendClientMessage(playerid,COLOR_YELLOW, "Sir, Welcome to Taxi Company if you need help please go to the help icon (with text label)");
SendClientMessage(playerid,COLOR_YELLOW, "Sir, You can also apply as Taxi Driver to earn a $Money, This job is legal and current available");
SendClientMessage(playerid,COLOR_WHITE, "__________________________________________");
SetPlayerInterior(playerid, 100);
SetPlayerVirtualWorld(playerid, 100);
SetPlayerPos(playerid, 1784.8574,-1841.2489,266.3188);
SetPlayerFacingAngle(playerid, 3.5019);
}
else if(pickupid == TaxiCompanyExit)
{
SetPlayerPos(playerid, 1756.1276,-1905.4021,13.5651);
SetPlayerFacingAngle(playerid, 285.9888);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
if(PlayerInfo[playerid][Job] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Looks like your on duty today, mate huh");
GameTextForPlayer(playerid, "~r~Bye sir hope we see you again!", 2000,3);
}
else if(pickupid == TaxiCompanyTakeJobIcon)
{
if(PlayerInfo[playerid][Job] == 1) return SendClientMessage(playerid, COLOR_GREY, "Go back to work!, you are already Taxi Driver");
SendClientMessage(playerid,COLOR_WHITE,"Hello sir please use /takejob to be a "yellow"Taxi Driver");
}
else if(pickupid == TaxiCompanyHelpIcon)
{
if(PlayerInfo[playerid][Job] == 1) return SendClientMessage(playerid, COLOR_GREY, "Go back to work!, you are already Taxi Driver");
strcat(string, "Taxidriver job is one of legal jobs in San Andreas\n");
strcat(string, "You will earn a money by doing this job\n");
strcat(string, "This job is legal (you will not get jail when doing this\n");
strcat(string, "Taxidrivers can off/on duty depends on their opinion\n");
strcat(string, "Taxidrivers also has locker, Only taxidrivers can go there\n");
strcat(string, "if you want to be member of "yellow"Taxi Company\n");
strcat(string, "goto /takejob icon, the "green"manager will take care of you\n\n");
strcat(string, ""green"Have a good time sir!");
ShowPlayerDialog(playerid, DIALOG_TAXIHELP, DIALOG_STYLE_MSGBOX,"Taxi Driver Help",string,"OK","");
}
return 1;
}
Do you crash when you go at the pickup or when you "answer" through the dialog?
i crash when i go to the entrance pickup oh and the job setting to 0 its not a bug. i fix it now the problem is i want to know why my server is crashing when i enter on the pickup
i'm sure they are correct. those coordinates are position inside the map (interior) that i made. the script work before maybe i try to remove the else