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



argument type mismatch - fordawinzz - 03.12.2011

I made this:

pawn Код:
stock CreateQuiz(q1[], a1, q2[], a2, q3[], a3, q4[], a4)
and I used this here:
pawn Код:
CreateQuiz(
    GetPVarString(playerid, "QuizCreateQ1", quizstr, 128),
    GetPVarInt(playerid, "QuizCreateA1"),
    GetPVarString(playerid, "QuizCreateQ2", quizstr, 128),
    GetPVarInt(playerid, "QuizCreateA2"),
    GetPVarString(playerid, "QuizCreateQ3", quizstr, 128),
    GetPVarInt(playerid, "QuizCreateA3"),
    GetPVarString(playerid, "QuizCreateQ4", quizstr, 128),
    GetPVarInt(playerid, "QuizCreateA4")
);
then I get the error, the pvars were setted correct in all the cases.