Stopped working.. - 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: Stopped working.. (
/showthread.php?tid=607520)
Stopped working.. -
Luicy. - 20.05.2016
Hi, I just had this pawn error:
http://prntscr.com/b6gau4
Here's the full gamemode:
http://pastebin.com/gYrM8G6U
Latest I did:
Create the login & register part, Line: 206
Latest include(right before error):dialogs
I tried to remove it, but didn't work still.
I already used a program to search for missing barracks.
Re: Stopped working.. -
F1N4L - 20.05.2016
stock D_R_C_Gender
Код:
stock D_R_C_Gender(playerid, response)
{
if(response)
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteInt(File, "Gender", 1);
INI_Close(File);
ShowPlayerDialog(playerid, D_R_C_Origin, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Origin", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters origin, Basically where he was born.", "Contine", "Exit");
}
else
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteInt(File, "Gender", 2);
INI_Close(File);
ShowPlayerDialog(playerid, D_R_C_Origin, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Origin", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters origin, Basically where she was born.", "Contine", "Exit");
}
}
stock D_R_C_Accent
Код:
stock D_R_C_Accent(playerid, response, inputtext[])
{
if(response)
{
if(!isnull(inputtext))
{
//new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "character");
INI_WriteString(File, "Accent", inputtext);
INI_Close(File);
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
PlayerTextDrawShow(playerid, Background);
PlayerTextDrawShow(playerid, Loading);
PlayerTextDrawShow(playerid, NewCity);
PlayerTextDrawShow(playerid, Roleplay);
SetTimerEx("EndLoadingScreen30", 3500, false, "i", playerid);
SetPlayerPos(playerid, 1743.1300, -1861.9683, 13.5769);
SetPlayerFacingAngle(playerid, 359.2573);
GivePlayerMoney(playerid, 25000);
}
else
{
ShowPlayerDialog(playerid, D_R_C_Accent, DIALOG_STYLE_INPUT, ""C_T_DialogTitle"New City Roleplay"C_T_Default": Character Accent", ""C_T_Default"Welcome to "C_T_DialogTitle"New City"C_T_Default": Roleplay.\nPlease enter your characters accent, Basically the way they speak.\n\n"C_T_Error"You forgot to enter the accent.", "Contine", "Exit");
}
}
else
{
KickPlayer(playerid, "\"Pressed Exit on Character Accent.\"");
}
}
Re: Stopped working.. -
Luicy. - 20.05.2016
Solved, I used stock D_R_C_Origin instead of lr_D_R_C_Origin