SA-MP Forums Archive
need help 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)
+--- Thread: need help with this (/showthread.php?tid=485493)



need help with this - Acres - 04.01.2014

hey guys sorry if bothering lol but i cant still fix this..(and i wont use zcmd otherwise i have to overwrite all commands i got)

Error:
Код:
C:\Users\Erik\Desktop\Iconik-Gamings\gamemodes\IGamings.pwn(4113) : error 017: undefined symbol "params"
Line:
Код:
if(sscanf(params, "ud", giveplayerid, level))return SendClientMessage(playerid, COLOR_RED, "Usage: /setvip [Playerid/Partname] [Level]");
Please i need to fix this only 1 error to fix i really appreciate if i get it fixed.


Re: need help with this - jtemple042996 - 04.01.2014

Hey Acres,

Do you have something like

Код:
CMD:setvip(playerid,params[])
for your Command? Are you sure you didn't accidently call Params something different?


Re: need help with this - Acres - 04.01.2014

i had dcmd_setvip but as i puted it it gave me alot of errors also if i put ZCMD i have to overwrite all my cmds


Re: need help with this - Konstantinos - 04.01.2014

pawn Код:
dcmd_setvip(playerid, params[])
{
    // ...
    if(sscanf(params, "ud", giveplayerid, level))return SendClientMessage(playerid, COLOR_RED, "Usage: /setvip [Playerid/Partname] [Level]");
    // ...
    return 1;
}
It's actually very easy to convert commands from dcmd to ZCMD. Just replace (Ctrl + H) "dcmd_" with "CMD:" and remove the OnPlayerCommandText callback. You're done!