08.01.2015, 09:01
I get these warnings:
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(1950) : warning 217: loose indentation
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(220 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(1950) : warning 217: loose indentation
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(220 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Код:
dcmd_setvip(playerid,params[]) { new ID; new vip; new string[128]; if(!IsPlayerName(playerid,"S.rockZ") && !IsPlayerName(playerid, "Mangoes")) return SCM(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF}You have submitted an invalid command, Type /commands or /cmds to see the server commands"); if(sscanf(params,"ui",ID,vip)) { SendClientMessage(playerid,COLOR_WHITE,""COL_USAGE"[SYNTAX] {FFFFFF}/setvip [PLAYER_ID] [VIP_LEVEL]"); return 1; } if(!IsPlayerConnected(ID)) { format(string,sizeof(string),"{AFAFAF}[Error]: {FFFFFF}Invalid player ID."); SendClientMessage(playerid,COLOR_WHITE,string); return 1; } IsVIP[ID] =vip; if(IsVIP[ID] == 0) { format(s_vip,sizeof(s_vip),"{FFFFFF}N/A"); } if(IsVIP[ID] == 1) { format(s_vip,sizeof(s_vip),"{006600}Regular"); } if(IsVIP[ID] == 2) { format(s_vip,sizeof(s_vip),"{660000}Alpha"); } if(IsVIP[ID] == 3) { format(s_vip,sizeof(s_vip),"{AFAFAF}Royal"); } if(IsVIP[ID] == 4) { format(s_vip,sizeof(s_vip),"{FFFF00}Elite"); } if(IsVIP[ID] == 5) { format(s_vip,sizeof(s_vip),"{6600FF}Delta"); } format(string,sizeof(string),""COL_ADMIN"[ADMIN] {FFFFFF}%s has set your V.I.P level to {F8E607}%s{FFFFFF}!",PlayerName(playerid),s_vip); SendClientMessage(ID,COLOR_WHITE,string); format(string,sizeof(string),""COL_ADMIN"[ADMIN] {FFFFFF}You have set {AFAFAF}%s(%d){FFFFFF}'s V.I.P level to {F8E607}%s{FFFFFF}!",PlayerName(ID),ID,s_vip); SendClientMessage(playerid,COLOR_WHITE,string); return 1; }