PDA

View Full Version : error 035: argument type mismatch


RandomDude
22/07/2013, 12:15 PM
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(7765) : error 035: argument type mismatch (argument 1)

new string2[128];
format(string2, sizeof(string2), "You have been disabled for %d days!", days);
SendClientMessage(giveplayer, orange, string2);

Line 7765 = SendClientMessage(giveplayer, orange, string2);

PrinceKumar
22/07/2013, 12:16 PM
do you have stock for give player?

RandomDude
22/07/2013, 12:19 PM
Oh no I don't lol.
Were can I find this?

Champ
22/07/2013, 12:19 PM
I think you have to remove " give player " from send client message because it makes the wrong format.

RandomDude
22/07/2013, 12:21 PM
I removed it now
error 035: argument type mismatch (argument 2)

PrinceKumar
22/07/2013, 12:24 PM
okay do this SendClientMessage(playerid,orange,string2);
if you did not define orange the define it on the top of the script under includes
#define orange 0xFFAF00

RandomDude
22/07/2013, 12:25 PM
Orange is defined ...
I changed orange to a defined color already so its not the color...

JimmyCh
22/07/2013, 12:28 PM
I gave you the code as giveplayer coz on the script you showed us, the guy who sees this message is "giveplayer", so I dont know why you got an error from this.. Try giveplayerid instead of giveplayer

RandomDude
22/07/2013, 12:31 PM
giveplayer should work Its not that because when I removed it I still get the error

PrinceKumar
22/07/2013, 12:31 PM
don't do anything you need to do this

SendClientMessage(playerid, -1, string2);

i think then your problem will be resolved

RandomDude
22/07/2013, 12:33 PM
don't do anything you need to do this

SendClientMessage(playerid, -1, string2);

i think then your problem will be resolved
Ahh that works but why can't I put a color -_-

PrinceKumar
22/07/2013, 12:35 PM
cause its need default which value is -1 you can put color in your format .

RandomDude
22/07/2013, 12:41 PM
I have put a color there now I don't get a error anymore hu lol -_-