02.10.2011, 00:26
Alright I'm using Vortex 2, using the latest sscanf plugin.. im wondering why when i use the command /check
and I put an id that isnt connected, it outputs the usually Unknown Command type thing, why the hell isnt it
outputting
return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
and yes
playerVariables[targetid][pStatus]
is being set correctly, its DEFAULT vortex 2 script, i doubt calg0ne would mess that up.
and I put an id that isnt connected, it outputs the usually Unknown Command type thing, why the hell isnt it
outputting
return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
pawn Код:
CMD:check(playerid,params[]) {
if(playerVariables[playerid][pAdminLevel] >= 1) {
new
targetid;
if(sscanf(params, "u", targetid))
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/check [playerid]");
if(playerVariables[targetid][pStatus] != 1)
return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
if(playerVariables[playerid][pAdminLevel] < playerVariables[targetid][pAdminLevel])
return SendClientMessage(playerid, COLOR_GREY, "You can't check a higher level administrator.");
showStats(playerid, targetid);
}
return 1;
}
playerVariables[targetid][pStatus]
is being set correctly, its DEFAULT vortex 2 script, i doubt calg0ne would mess that up.