BUG New Skins 0.3.7
#1

Hello.

I have a problem.

Just transfer my server to the new version (0.3.7), put new skins on the players (301~311)

if the player tries to be born with one of the new skins, appears: Unknown Command

Can you explain why if the player has a new skin happens these errors?

Thanks.
Reply
#2

Do you any functions that blocks skins? Like, IsValidSkin for example.
Reply
#3

all the functions you put

Код:
if(playerid == INVALID_PLAYER_ID) { return 1; }
Reply
#4

So, you don't want a player to spawn with a new skin?

Also, what is that code even doing? It basically checks if the player is an invalid player then returns 1.
Reply
#5

in fact, I wonder why the new skins are accusing the player to be invalid.

various server functions do not work if you are using a new skin, not born in setplayerspawn if you try to set spawn the player, Unknown Command, there's something wrong.
Reply
#6

That is why I asked you if you use any sort of function that doesn't allow the player to spawn if they choose an invalid skin.
Reply
#7

example :

Код:
if(strcmp(cmd, "/settime",true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COR_GRAD2, "USE: /settime [id]");
				return 1;
			}
			new para1;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
			    if(IsPlayerConnected(para1))
			    {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SetPlayerSpawn(para1);
						ClearCrime(para1);
						if(GetPlayerState(para1) == PLAYER_STATE_DRIVER) { SetVehicleToRespawn(GetPlayerVehicleID(para1)); }
						format(string, sizeof(string), "O Admin %s colocou vocк em seu spawn.",sendername);
						SendClientMessage(para1, COR_LIGHTBLUE, string);
						format(string, sizeof(string), "Vocк colocou %s em seu spawn.",giveplayer);
						SendClientMessage(playerid, COR_LIGHTBLUE, string);
				}
			}
			else
			{
				SendClientMessage(playerid, COR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
			}
		}
		return 1;
	}

This command does not work if the player is using one of the new skins.
Reply
#8

Does it show the
pawn Код:
SendClientMessage(playerid, COR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
message? If it does you're probably not set as an administrator.
Reply
#9

has nothing to do with this friend, I am the owner of the server, I am rather as administrator, the command does not work if I try to use on any player with new skin, if I put an old skin, usually works.

is not only this command, multiple commands!
Reply
#10

Well, I'm honestly stumped. I'm sure somebody else can help you though, I see nothing that even relates to a players skin in that command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)