What's the problem here?
HTML Code:
public Action DajCos(int client, int args) {
if (args != 2) {
ReplyToCommand(client, "[SM] Usage: sm_givecos <nick> <cos>");
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) {
Cos[target] += argument2; // ERROR array must be indexec(variable "argument2")
Cos[client] -= argument2; // ERROR array must be indexec(variable "argument2")
}
return Plugin_Handled;
}