[HELP] Problem with crashing when type staff pin - 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: [HELP] Problem with crashing when type staff pin (
/showthread.php?tid=564252)
[HELP] Problem with crashing when type staff pin -
TiXz0r - 20.02.2015
when type staff pin, server crash.
when move:
Код:
if(strcmp(inputtext,PlayerInfo[playerid][pStaffPin],true))
server not crashing.
Код:
if(dialogid == DIALOG_STAFFPIN)
{
if ( !response ) return Kick ( playerid );
{
if(strcmp(inputtext,PlayerInfo[playerid][pStaffPin],true))
{
//=====|PORUKA STAFFU|=====
if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
if (PlayerInfo[playerid][pAdmin] == 5)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Head Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
if (PlayerInfo[playerid][pAdmin] == 6)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Administrator [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
}
else
{
//banat ce
SetTimerEx("KickTime", 1000, false, "i", playerid);
}
}
return 1;
}
im try all,but not working.
Re: [HELP] Problem with crashing when type staff pin -
KayJ - 20.02.2015
pawn Код:
if(dialogid == DIALOG_STAFFPIN)
{
if ( !response ) return Kick ( playerid );
{
if(strcmp(inputtext,PlayerInfo[playerid][pStaffPin],true))
{
if (PlayerInfo[playerid][pAdmin] == 5)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Head Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
else if (PlayerInfo[playerid][pAdmin] == 6)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Administrator [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
else if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
new aloginstring[128];
format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
SendMessageToAdmins(COLOR_WHITE,aloginstring);
}
}
else
{
return SetTimerEx("KickTime", 1000, false, "i", playerid);
}
}
return 1;
}
Re: [HELP] Problem with crashing when type staff pin -
TiXz0r - 20.02.2015
work. thanks
do you know maybe this problem.
On home server all working, saving profile perfect working, making profile and save player variables.
but on hosted server, server just make .ini file, but when open file, file is clear :S