Zcmd/Sscanf Help would be nice.
#1

Soo. I find ZCMD and SSCANF interesting so I want to start scripting with that, I saw a guide on how to set it up, when I try to make a command, i get four errors (code below)

pawn Код:
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 029: invalid expression, assumed zero
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 017: undefined symbol "cmd_heal"
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : error 029: invalid expression, assumed zero
C:\Users\Ruby\Documents\0.3c Scripting\gamemodes\TestingZCMD.pwn(92) : fatal error 107: too many error messages on one line
I got the
pawn Код:
#include <zcmd>
#include <sscanf2>
under #include <a_samp>

if you wanna see the cmd i am trying to make here it is

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    COMMAND:heal(playerid, params[])
    {
        SetPlayerHealth(playerid, 50);
        return 1;
    }
    return 0;
}
In advance, Thank you.
Reply
#2

put it outside the callback.
Reply
#3

Dude... Awesome Thanks, easier than I thought xD
Reply
#4

check out www.*******.com/computernerdlessons if you want to see the tutorials on zcmd and Sscanf there...
Reply
#5

Put
pawn Код:
COMMAND:heal(playerid, params[])
    {
        SetPlayerHealth(playerid, 50);
        return 1;
    }
In Final Game Mode

and Delete CallBack OnPlayerCommandText

Reply
#6

Quote:
Originally Posted by [FeK]DraKiNs
Посмотреть сообщение
Put
pawn Код:
COMMAND:heal(playerid, params[])
    {
        SetPlayerHealth(playerid, 50);
        return 1;
    }
In Final Game Mode

and Delete CallBack OnPlayerCommandText

Why are you saying the exact thing that's already been mentioned and the thread is solved?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)