Hi i need help with this
HTML Code:
public Action Daj(int client, int args) {
if (args != 2) {
ReplyToCommand(client, "[SM] Usage: sm_daj <nick> <ilosc>");
return Plugin_Handled;
}
char argument1[64];
char argument2[32];
GetCmdArg(1, argument1, sizeof(argument1));
GetCmdArg(2, argument2, sizeof(argument2));
int target = FindTarget(client, argument1);
if (target > -1 && coss[client] >= StringToInt(argument2)) {
coss[target] += StringToInt(argument2); s
coss[client] -= StringToInt(argument2);
ReplyToCommand(target, "%s you get %d coins from player %N ", TAG, argument2, client);
ReplyToCommand(client, "%s you give player %N %d coins", TAG, target, argument2);
}
return Plugin_Handled;
}
when i say sm_daj nickname 10 i have this message
[tag] you get 2002871415 coins from player nickname
[tag] you give player nickname 2002871415 coins
but player get only 10 coins what i do wrong?