Need help with ranks!
#6

Код:
CMD:adjustrankname(playerid, params[])
{
	new rank, name[32], string[128];
	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!PlayerInfo[playerid][pFacLeader]) return SendClientMessage(playerid, COLOR_GREY, "You are not a faction leader.");
	if(sscanf(params, "is[32]", rank, name)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /adjustrankname [rank] [name]");

    {
        format(PlayerInfo[Playerid[pFac]][pFacRank], 32, "%s", params);
        format(string, sizeof(string), "You have editted the rankname to %s", name);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	}

	return 1;
}
This is what i have now, and the errors:
C:\Users\admin\Desktop\AXE\gamemodes\AXE.pwn(14003 ) : error 017: undefined symbol "Playerid"
C:\Users\admin\Desktop\AXE\gamemodes\AXE.pwn(14003 ) : warning 215: expression has no effect
C:\Users\admin\Desktop\AXE\gamemodes\AXE.pwn(14003 ) : error 001: expected token: ";", but found "]"
C:\Users\admin\Desktop\AXE\gamemodes\AXE.pwn(14003 ) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\AXE\gamemodes\AXE.pwn(14003 ) : fatal error 107: too many error messages on one line

Line 14003
Код:
        format(PlayerInfo[Playerid[pFac]][pFacRank], 32, "%s", params);
Reply


Messages In This Thread
Need help with ranks! - by ThaCrypte - 19.04.2013, 10:19
Re: Need help with ranks! - by ThaCrypte - 19.04.2013, 10:25
Re: Need help with ranks! - by Syntax - 19.04.2013, 13:17
Re: Need help with ranks! - by ThaCrypte - 19.04.2013, 13:30
Re: Need help with ranks! - by PaulDinam - 19.04.2013, 13:45
Re: Need help with ranks! - by ThaCrypte - 19.04.2013, 14:10
Re: Need help with ranks! - by ThaCrypte - 19.04.2013, 15:10
Re: Need help with ranks! - by BigGroter - 19.04.2013, 15:17
Re: Need help with ranks! - by Chris_Morrison - 19.04.2013, 16:17
Re: Need help with ranks! - by ThaCrypte - 19.04.2013, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)