SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=524248)



warning 202: number of arguments does not match definition - Kemula - 05.07.2014

Title :S
pawn Код:
new modelo;
modelo = GetVehicleModel(autos[i]);
SendClientMessage(i,-1,"Tu {F8F800}%s{FFFFFF} ha sido remolcado al ъltimo lugar donde lo estacionastes.", NombreAuto[modelo-400]);
Why? :S


Re: warning 202: number of arguments does not match definition - Dignity - 05.07.2014

You need to use format for that.

pawn Код:
new modelo, string[80];
modelo = GetVehicleModel(autos[i]);
format(string, sizeof(string), "Tu {F8F800}%s{FFFFFF} ha sido remolcado al ъltimo lugar donde lo estacionastes.", NombreAuto[modelo-400]);
SendClientMessage(playerid, -1, string);



Re: warning 202: number of arguments does not match definition - TwinkiDaBoss - 05.07.2014

SendClientMessage(playerid,color,message)

You are using 4 things in SendClientMessage.


Respuesta: Re: warning 202: number of arguments does not match definition - Kemula - 05.07.2014

Quote:
Originally Posted by Mionee
Посмотреть сообщение
You need to use format for that.

pawn Код:
new modelo, string[80];
modelo = GetVehicleModel(autos[i]);
format(string, sizeof(string), "Tu {F8F800}%s{FFFFFF} ha sido remolcado al ъltimo lugar donde lo estacionastes.", NombreAuto[modelo-400]);
SendClientMessage(playerid, -1, string);
Thanks, +REP.

Solved