SA-MP Forums Archive
samp server crashing after using command - 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: samp server crashing after using command (/showthread.php?tid=501211)



samp server crashing after using command - KaliKs - 16.03.2014

hey guys guestion can my samp server crash because of warnings? cuz i have 5 warns and my cmd /veh is crashing the server... any ideas? thanks!


Re: samp server crashing after using command - AleemIqbalBhatti - 16.03.2014

can u show us Warning and cmd


Re: samp server crashing after using command - KaliKs - 16.03.2014

fixed 4 warns but now 1 at weird place...

Код:
					else {
code before and after..

Код:
			case 38:
				{
				        if(PlayerInfo[giveplayerid][pConnectTime] >= 2) {
						PlayerInfo[giveplayerid][pWRestricted] = amount;
						format(string, sizeof(string), "   %s's Weapon Restricted Time has been set to %d.", GetPlayerNameEx(giveplayerid), amount);
					}
					else {
					
						return SendClientMessageEx(playerid, COLOR_GREY, "You cannot set this on a player who has under 2 playing hours.");
					}
				}



Re : samp server crashing after using command - samp_boy - 16.03.2014

have you tryed this ?!:

Код:
case 38:
				{
				        if(PlayerInfo[giveplayerid][pConnectTime] >= 2) {
						PlayerInfo[giveplayerid][pWRestricted] = amount;
						format(string, sizeof(string), "   %s's Weapon Restricted Time has been set to %d.", GetPlayerNameEx(giveplayerid), amount);
					}
					else
					
						return SendClientMessageEx(playerid, COLOR_GREY, "You cannot set this on a player who has under 2 playing hours.");
					}
				}



Re: samp server crashing after using command - AleemIqbalBhatti - 16.03.2014

case 38:
{
if(PlayerInfo[giveplayerid][pConnectTime] >= 2) {
PlayerInfo[giveplayerid][pWRestricted] = amount;
format(string, sizeof(string), " %s's Weapon Restricted Time has been set to %d.", GetPlayerNameEx(giveplayerid), amount);
}
else

return SendClientMessageEx(playerid, COLOR_GREY, "You cannot set this on a player who has under 2 playing hours.");
}

This?


Re: samp server crashing after using command - iZN - 16.03.2014

I don't know why the above to posters are missing } after else. Please show your errors, with their correct lines.