All pastes #675449 Raw Edit

Something

public text v1 · immutable
#675449 ·published 2007-08-30 04:39 UTC
rendered paste body
	if(strcmp(cmd, "/setname", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setname [playerid/PartOfName] [Name]");
				return 1;
			}
			new playa;
			new name;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			name = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1338)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
						SetPlayerName(playa, name);
				}
			}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}



C:\Documents and Settings\Remix\Desktop\gf.pwn(9226) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Remix\Desktop\gf.pwn(9219) : warning 204: symbol is assigned a value that is never used: "name"