26.08.2011, 07:25
you just didnt close all the barrels.. :\
pawn Код:
if(strcmp(cmd, "/refund", true) == 0)
{//1 open
if(IsPlayerConnected(playerid)) {//2 open
if(PlayerInfo[playerid][pAdmin] < 4) {//3 open
SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !");
return 1;
}//3 closed
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {//4 open
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refund [playerid/PartOfName]");
return 1;
}//4 closed
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)) {//5 open
if(giveplayerid != INVALID_PLAYER_ID) {//6 open
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
RefundingID[playerid] = giveplayerid;
//refund
DisplayDialogForPlayer(playerid, 47);
}//6 closed
}//5 closed
}//2 closed
}//1 closed
return 1;
}