Error 035
#1

When i compile with this line in my gamemode, this error comes up
Код:
C:\Users\Mujib\My Files\SA-MP Scripts, Tools, and Webpages\Pombear RPG (Ubuntu PC)\_Server\gamemodes\prpg.pwn(11244) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 11244 is : SetPlayerName(giveplayerid, newname);

Its inside an command, the whole command is :
Код:
	if(strcmp(cmd, "/setname", true) == 0)
	{
	  tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_GREY, "USAGE: /setmoney [playerid] [newname]");
			return 1;
		}
		giveplayerid = strval(tmp);
		tmp = strtok(cmdtext, idx);
		new newname = strval(tmp);
		if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 104)
		{
			format(string, sizeof(string), "-OperServ- %s's name has been changed by force to $%d,- by admin %s",PlayerName[giveplayerid], newname, PlayerName[playerid]);
			SendClientMessageToAll(COLOR_LIGHTBLUE, string);
 			SetPlayerName(giveplayerid, newname);
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
		}
		return 1;
	}
Please fix this, or at least tell how to.

Thanks in advance.
Greets,
Mujib
Reply


Messages In This Thread
Error 035 - by Mujib - 08.12.2009, 14:53
Re: Error 035 - by Joe Staff - 08.12.2009, 14:58
Re: Error 035 - by Jeffry - 08.12.2009, 15:01
Re: Error 035 - by DeathOnaStick - 08.12.2009, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)