01.07.2009, 21:50
Код:
//----------------------------------[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.