Choosing skin over 300+ skin closes my gta.
#1

Anyone know how to disable inputting 300+ skin. Coz when I tried entering 300+ it closes my gta.

Also if a player enter 300+ skin a sendclientmessage will display "Error you can't go under 299" Or something like that.

Код:
		if(strval(inputtext) < 0 || strval(inputtext) > 299) SendClientMessage(playerid, WHITE, "SERVER: Cannot go under 0 or above 299.");
		new skin = strval(inputtext);
		PlayerInfo[playerid][pModel] = skin;
		SetPlayerSkin(playerid, skin);
		GameTextForPlayer(playerid,"~g~Skin ~g~Changed",2000,3);
		return 1;
Reply
#2

pawn Код:
if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, WHITE, "SERVER: Cannot go under 0 or above 299.");
        new skin = strval(inputtext);
        PlayerInfo[playerid][pModel] = skin;
        SetPlayerSkin(playerid, skin);
        GameTextForPlayer(playerid,"~g~Skin ~g~Changed",2000,3);
        return 1;
Reply
#3

Quote:
Originally Posted by milanosie
Посмотреть сообщение
pawn Код:
if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, WHITE, "SERVER: Cannot go under 0 or above 299.");
        new skin = strval(inputtext);
        PlayerInfo[playerid][pModel] = skin;
        SetPlayerSkin(playerid, skin);
        GameTextForPlayer(playerid,"~g~Skin ~g~Changed",2000,3);
        return 1;
thanks +rep, anyway i send you a pm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)