[Help] error 035: argument type mismatch (argument 3) +rep !
#1

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!
Reply
#2

Use format instead of strcat.
Reply
#3

How?
Reply
#4

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

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

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);
Reply
#7

Oh, really, thanks. ґ+rep
Reply
#8

when nikk was nub XD <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)