SA-MP Forums Archive
[Help] error 035: argument type mismatch (argument 3) +rep ! - 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: [Help] error 035: argument type mismatch (argument 3) +rep ! (/showthread.php?tid=310429)



[Help] error 035: argument type mismatch (argument 3) +rep ! - [Nikk] - 12.01.2012

Well, i have this errors in all of this lines, why ?

error 035: argument type mismatch (argument 3)

pawn Code:
new iString[1600];
            strcat(iString, "             {FF0000} Terminaste tu Mision %s !.\n\n\n\n", Name);
            strcat(iString, "- {FFFFFF}Informacion:.\n\n");
            strcat(iString, "- {FFFF00}Carga: {FFFFFF}%s *\n\n", Load);
            strcat(iString, "- {FFFF00}Punto de carga: {FFFFFF}%s\n\n", StartLoc);// NOT WORKING YET
            strcat(iString, "- {FFFF00}Punto de Descarga: {FFFF00}%s \n\n", EndLoc);
            strcat(iString, "- {FFFFFF}Tiempo: %d minutos y %d segundos. \n\n", Minutos[playerid], Segundos[playerid]);
            strcat(iString, "- {FFFFFF}Dinero ganado:%d .\n\n", Payment);
            ShowPlayerDialog(playerid,1243, DIALOG_STYLE_MSGBOX, "{00F6F6} Informacion del trabajo:", iString, "Salir", "");
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
What happends ?

I give rep!


Re: [Help] error 035: argument type mismatch (argument 3) +rep ! - Norck - 12.01.2012

Use format instead of strcat.


Respuesta: [Help] error 035: argument type mismatch (argument 3) +rep ! - [Nikk] - 12.01.2012

How?


Re: [Help] error 035: argument type mismatch (argument 3) +rep ! - KingHual - 12.01.2012

format(string, sizeof(string), https://sampwiki.blast.hk/wiki/Format


Respuesta: [Help] error 035: argument type mismatch (argument 3) +rep ! - [Nikk] - 12.01.2012

Yea, i know how use format, but not i case of this :/


Re: [Help] error 035: argument type mismatch (argument 3) +rep ! - Norck - 12.01.2012

Here you go:
pawn Code:
new iString[1600];
            format(iString, sizeof(iString),"{FF0000} Terminaste tu Mision %s !.\n\n\n\n", Name);
            strcat(iString,"- {FFFFFF}Informacion:.\n\n");
            format(iString, sizeof(iString), "%s- {FFFF00}Carga: {FFFFFF}%s *\n\n",iString, Load);
            format(iString, sizeof(iString), "%s- {FFFF00}Punto de carga: {FFFFFF}%s\n\n",iString, StartLoc);
            format(iString,  sizeof(iString),"%s- {FFFF00}Punto de Descarga: {FFFF00}%s \n\n",iString, EndLoc);
            format(iString, sizeof(iString), "%s- {FFFFFF}Tiempo: %d minutos y %d segundos. \n\n", iString,Minutos[playerid], Segundos[playerid]);
            format(iString,  sizeof(iString),"%s- {FFFFFF}Dinero ganado:%d .\n\n",iString, Payment);
            ShowPlayerDialog(playerid,1243, DIALOG_STYLE_MSGBOX, "{00F6F6} Informacion del trabajo:", iString, "Salir", "");
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);



Respuesta: [Help] error 035: argument type mismatch (argument 3) +rep ! - [Nikk] - 12.01.2012

Oh, really, thanks. ґ+rep


Re: [Help] error 035: argument type mismatch (argument 3) +rep ! - LondonRP - 01.09.2016

when nikk was nub XD <3