Posts: 41
Threads: 18
Joined: Oct 2012
Reputation:
0
format(str,128,"[%d] %s ha reportato %s [%d]. Motivo: '%s'",report1reportante,GetPlayerNameEx(report1rep ortante),GetPlayerNameEx(report1reportato),report1 reportato,report1desc);
error 035: argument type mismatch (argument 1)
What's the problem?
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
The third argument should be the size of the string.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Show the declaration ('new') for 'str'. You should also use sizeof() so if you change the string's array size, you won't have to change it in format() also. Also, SendClientMessage is limited to 144 characters, not 128. 128 is chat input. A lot of people don't know this.
EDIT: The problem looks like it's with GetPlayerNameEx.
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
Look your first GetPlayerNameEx. Not sure if you got it also in the script like that but that may be causing it?