Restriction
#3

Код:
 C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\modernliferp.pwn(28075) : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\modernliferp.pwn(28076) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
CMD:makehelper(playerid, params[])
{
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
//	if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pHelper] >= 2)
    if(strcmp(PlayerInfo[playerid][pName], "Craig_Langdale")
	{
	    new playerb, admin, string[128], string2[128];
	    if(sscanf(params, "ui", playerb, admin)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makehelper [playerid] [level]");
		if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
		if(admin < 0 || admin > 2) return SendClientMessage(playerid, COLOR_GREY, "Helper levels are between 1 and 2.");
	    if(PlayerInfo[playerb][pHelper] != admin)
Reply


Messages In This Thread
Restriction - by CSLangdale - 10.10.2017, 15:08
Re: Restriction - by Twizted - 10.10.2017, 15:09
Re: Restriction - by CSLangdale - 10.10.2017, 15:26
Re: Restriction - by Kraeror - 10.10.2017, 15:29
Re: Restriction - by CSLangdale - 10.10.2017, 15:39
Re: Restriction - by Kraeror - 10.10.2017, 15:40
Re: Restriction - by CSLangdale - 10.10.2017, 15:43
Re: Restriction - by Lokii - 10.10.2017, 15:46
Re: Restriction - by CSLangdale - 10.10.2017, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)