Help with a ban command y_ini saving ''reason''
#7

Quote:
Originally Posted by Kitten
Посмотреть сообщение
shouldn't it be

pawn Код:
new string[128];
format(string, sizeof(string), "%s", reason);
That wont work since it will save 0

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Show how you create pBanReason in the enum.
pBanReason[128],

Quote:
Originally Posted by Mellnik
Посмотреть сообщение
you have to add [128] by pBanReason in the enum
pBanReason[128],

pawn Код:
if (sscanf(params, "ds[128]", id, reason)) SendClientMessage(playerid, COLOR_INFO, "Usage: \"/ban [playerid] [reason]\"");
format(PlayerInfo[playerid][pBanReason], 128, "%s", reason);
PlayerInfo[playerid][pBanReason] = reason;
Output of this in save file is 84 no matter what i put under /ban id reason
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)