Help: warning 202: number of arguments does not match definition
#1

hello

i have problem , when i compile i get warning

Код:
(18254) : warning 202: number of arguments does not match definition
this line :
Код:
if(!response) return OnPlayerCommandPerformed(playerid, "/obj");
full
pawn Код:
case 6566:
        {
            if(response)
            {
                if(!response) return OnPlayerCommandPerformed(playerid, "/obj");
                new Float:X, Float:Y, Float:Z;
                new model = strval(inputtext);
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 6566, DIALOG_STYLE_INPUT, "Editor", "Enter the ID of the object:", "Finish", "Back");
                if(strlen(inputtext) > 5) return ShowPlayerDialog(playerid, 6566, DIALOG_STYLE_INPUT, "Editor", "Enter the ID of the object:", "Finish", "Back");
                GetPlayerPos(playerid, X, Y, Z);
                new Object = CreateObject(model, X + 0.0, Y + 3.0, Z + 1.0, 0.0, 0.0, 0.0);
                EditObject(playerid, Object);
            }
            return true;
        }
Reply
#2

Its
Код:
OnPlayerCommandPerformed(playerid, cmdtext[], success)
For your code, replace
pawn Код:
if(!response) return OnPlayerCommandPerformed(playerid, "/obj");
with

pawn Код:
if(!response) return cmd_obj(playerid, "");
read zcmd's include thread or search for tutos, they are many.
https://sampforum.blast.hk/showthread.php?tid=91354
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)