Undefined params
#1

I have included sscanf2.inc but When i compile it gives me this

Quote:

K:\zGamingRoleplay\gamemodes\Garage.pwn(261) : error 017: undefined symbol "params"

Code place:
pawn Код:
new string[128], choice[32], garageid, amount;
        if(sscanf(params, "s[32]dD", choice, garageid, amount))
        {
            SendClientMessage(playerid, 0x33AA33AA, "USAGE: /garageedit [name] [garageid] [(Optional)amount]");
            SendClientMessage(playerid, 0x33AA33AA, "Available names: Exterior, Interior, Price");
            return 1;
        }
how to fix it? I tried to new params but ingame /garageedit doesn't work.
Reply
#2

^ What ****** said. The point is, that strcmp commands don't have the 'params' parameter, y_commands and zcmd do have it. Either change the 'params' to something that strcmp commands have (can't tell you what as I don't use strcmp commands), or convert it to a y_commands/zcmd command.
Reply
#3

Yes, I am using strcmp but I must use y_commands?
Reply
#4

Thank you for helping ******, +reped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)