samp server crashing after using command
#1

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!
Reply
#2

can u show us Warning and cmd
Reply
#3

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.");
					}
				}
Reply
#4

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.");
					}
				}
Reply
#5

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?
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)