Jump to content
  • 0

O problema :(


Question

Posted

D:\Vali\Romania Stunt Game\Romania Stunt Game\gamemodes\PR.pwn(848) : error 001: expected token: "-identifier-", but found "["
D:\Vali\Romania Stunt Game\Romania Stunt Game\gamemodes\PR.pwn(849) : error 029: invalid expression, assumed zero
D:\Vali\Romania Stunt Game\Romania Stunt Game\gamemodes\PR.pwn(851) : warning 202: number of arguments does not match definition
D:\Vali\Romania Stunt Game\Romania Stunt Game\gamemodes\PR.pwn(856) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Puteti sa ma ajutati..

560x95_FFFFFF_FF9900_000000_000000.png

4 answers to this question

Recommended Posts

Posted

uite

if (strcmp(cmd, "/skin", true) == 0 )
	{
		new skin[256];
		skin = strtok(cmdtext, idx);

		if (!strlen(skin))
		{
			SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]");
			return 1;
		}
		new newskin = strval(skin);
		if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {
			SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!");
			return 1;
		}

		if (GetPlayerMoney(playerid) >= 0)
		{
			SetPlayerSkin(playerid, newskin);
			GivePlayerMoney(playerid,-0);
			format(string, 128, "Server: Skin changed to the id %d, have fun", newskin);
			SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "You can not change skin");
		}
		return 1;
	}

    return 0;
}

560x95_FFFFFF_FF9900_000000_000000.png
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.