16.09.2018, 11:26
Hello all,
I'm trying to interpolate a value of an array into sscanf. I use zcmd and sscanf2.
..\include\commands.inc(83) : error 035: argument type mismatch (argument 1)
..\include\commands.inc(83) : warning 215: expression has no effect
..\include\commands.inc(83) : error 001: expected token: ";", but found "]"
..\include\commands.inc(83) : error 029: invalid expression, assumed zero
This line causes the problem but I think it is the declaration of the two targetids but I don't know it at the moment.
-Doddinger
I'm trying to interpolate a value of an array into sscanf. I use zcmd and sscanf2.
Код:
CMD:enemyandhisfriend { if(sscanf(params, "uus", players[0], players[1], xyz-example) { SendClientMessage(playerid, your_dream_color, "[USAGE] /cmd <userid> <enemyid> <mode>"); } else { new players[2]; players[0] = playerData[targetId]; players[1] = playerData[targetId]; if(playerData[online]) { .........your code......... ............................... } else { SendClientMessage(playerid, error_color, NOTONLINEMSG); } } }
..\include\commands.inc(83) : warning 215: expression has no effect
..\include\commands.inc(83) : error 001: expected token: ";", but found "]"
..\include\commands.inc(83) : error 029: invalid expression, assumed zero
Код:
SendClientMessage(playerid, your_dream_color, "[USAGE] /cmd <userid> <enemyid> <mode>");
-Doddinger