SA-MP Forums Archive
argument type mismatch (argument 1) - 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: argument type mismatch (argument 1) (/showthread.php?tid=504892)



argument type mismatch (argument 1) - NTVbeleza - 06.04.2014

Код:
C:\Users\NTVbeleza\Desktop\tigres.pwn(6754) : error 035: argument type mismatch (argument 1)
C:\Users\NTVbeleza\Desktop\tigres.pwn(6754) : error 035: argument type mismatch (argument 1)
C:\Users\NTVbeleza\Desktop\tigres.pwn(6754) : error 035: argument type mismatch (argument 2)
C:\Users\NTVbeleza\Desktop\tigres.pwn(6754) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  Line of error --------------))                   format(string, sizeof(string), "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}.",);             ((-------------Line of error
			        Enviarmensaje(playerid, COLOR_AZULL, string);



Re: argument type mismatch (argument 1) - Diogo123 - 06.04.2014

pawn Код:
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
format(string, sizeof(string), "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}.");
Enviarmensaje(playerid, COLOR_AZULL, string);



Re: argument type mismatch (argument 1) - VishvaJeet - 06.04.2014

Код:
new string[128];
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
format(string, 128, "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}.");
Enviarmensaje(playerid, COLOR_AZULL, string);
if not working then ||
Show me your "Enviarmensaje" function


Re: argument type mismatch (argument 1) - NTVbeleza - 06.04.2014

Thks,re


Re: argument type mismatch (argument 1) - NTVbeleza - 06.04.2014

Код:
C:\Users\NTVbeleza\Desktop\tigres.pwn(7372) : error 029: invalid expression, assumed zero
C:\Users\NTVbeleza\Desktop\tigres.pwn(7372) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: argument type mismatch (argument 1) - VishvaJeet - 06.04.2014

Remove this from line ","
format(string, sizeof(string), "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}.",);


Re: argument type mismatch (argument 1) - Dubya - 06.04.2014

Код:
// replace
format(string, sizeof(string), "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}.",); // error with the comma.

with

format(string, sizeof(string), "[Trabajo] {FFFFFF}Por haber limpiado las calles, has recibido una paga de: {00CC00}$1500{FFFFFF}."); // comma removed



Re: argument type mismatch (argument 1) - NTVbeleza - 06.04.2014

Thank you very much solved