Error. Help please :'(
#1

Код:
//----------------------------------[MAKEVIP]------------------------------------------------
	if(strcmp(cmd, "/makevip", true) == 0)
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makevip [playerid] [level]");
			return 1;
		}
		new para1;
		new level;
		if(IsStringAName(tmp))
		{
			para1 = GetPlayerID(tmp);
		}
		else
		{
			para1 = strval(tmp);
		}
		tmp = strtok(cmdtext, idx);
		level = strval(tmp);
		if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] == 1337)
		{
			GetPlayerName(para1, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
>>>>>>>			VIP[playerid] = level;
			printf("AdmCmd: %s has promoted %s to VIP.", sendername, giveplayer);
			format(string, sizeof(string), "  You have been promoted to VIP by admin by %s", sendername);
			SendClientMessage(para1, COLOR_RED, string);
			format(string, sizeof(string), "  You have promoted %s to VIP.", giveplayer);
			SendClientMessage(playerid, COLOR_RED, string);
		}
		else
		{
			SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
		}
		return 1;
	}
	
//<-----------------------------[VIPs]-----------------------------------------------------------------------
	if (strcmp(cmd, "/vips", true) == 0 && IsPlayerConnected(playerid)) // The old one
	{
		SendClientMessage(playerid, COLOR_GRAD1, "VIPS Online:");
		for(new i = 0; i <= MAX_PLAYERS; i++)
		{
>>>>>>			if(VIP[playerid] == 1)
			{
				GetPlayerName(i, sendername, sizeof(sendername));
				format(string, 256, "VIP: %s", sendername);
				SendClientMessage(playerid, COLOR_GRAD2, string);
			}
		}
		return 1;
	}
Код:
E:\Programma's\Server\server 4\gamemodes\RealLife.pwn(22039) : warning 213: tag mismatch
E:\Programma's\Server\server 4\gamemodes\RealLife.pwn(22059) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Can Anyone help me please
Reply
#2

Could you show us what lines we have to fix?
Reply
#3

Quote:
Originally Posted by cοοp
Could you show us what lines we have to fix?
Ok i got the lines with >>>>> VIP[playerid]
Reply
#4

show the global VIP on top it must be
Код:
new VIP[200];
Reply
#5

new bool:VIP[MAX_PLAYERS];


I want to make the VIP system. So i got the Admin system and i make from the admin system VIP. So i start with /makevip and /vips and then the other things
Reply
#6

Remove
Код:
bool:
Reply
#7

Quote:
Originally Posted by Jefff
Remove
Код:
bool:
oh lol :P so easy xD ok thx ^^ i gonna work more for the VIP system but first test it ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)