need help with this
#1

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

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?
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)