SA-MP Forums Archive
Whats wrong with this? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats wrong with this? (/showthread.php?tid=83584)



Whats wrong with this? - arnutisz - 26.06.2009

I have a dcmd command:

pawn Код:
dcmd(savep,5,cmdtext);

dcmd_savep(playerid, params)
{
    #pragma unused params
    new Float:pPos[3];
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    rpickup = CreatePickup(1559, 23, pPos[0], pPos[1], pPos[2]);
    return 1;
}
But i get:
Код:
error 035: argument type mismatch (argument 2)
The line is:
pawn Код:
dcmd(savep,5,cmdtext);




Re: Whats wrong with this? - yezizhu - 26.06.2009

edited
dcmd_savep(playerid, params)
to
dcmd_savep(playerid, params[])


Re: Whats wrong with this? - arnutisz - 26.06.2009

thanks (thats stupid mistake )


Re: Whats wrong with this? - Abernethy - 26.06.2009

Quote:
Originally Posted by VioR
Ok
Don't post bullshit like that to get your posts up.