Problem with the commands
#1

Hi , i have a lot of commands like :
pawn Code:
if (strcmp("/joinstars", cmdtext, true, 10) == 0)
{
            if(GetPlayerScore(playerid) >= 800)
            {
             SetPlayerPos(playerid, -2239.9321,-1747.2985,480.8629);
             SetPlayerSkin(playerid, 287);
             gTeam[playerid] = TEAM_STARS;
             ResetPlayerWeapons(playerid);
             GivePlayerWeapon(playerid, 24, 100);
             GivePlayerWeapon(playerid, 26, 100);
             GivePlayerWeapon(playerid, 31, 500);
             SetPlayerColor(playerid,0x0000FFAA);
             SendClientMessage(playerid,0x0000FFAA," Welcome to the STARS QG!");
            }
            else
            {
                SendClientMessage(playerid,0x90EE90FF,"You must have a score of at least 800 to be member of this Faction!");
             }
        return 1;
}

and i have other commands with zcmd ad they are working like :
pawn Code:
CMD:zombieo(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, -2315.3188476563, -2169.1782226563, 41.085674285889, 5))
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
    MoveObject(zombiegate, -2315.3188476563, -2169.1782226563, 35, 5);
    PlayerPlaySound(playerid, 1035, -2315.3188476563, -2169.1782226563, 41.085674285889, 5);
    SendClientMessage(playerid, 0xFFFFFF, "You take your remote console and open the gate...");
}
}
else
{
    SendClientMessage(playerid, 0xAA3333AA, "You must be zombie and near the gate to use it.");
}
    return 1;
}
INCLUDES :
pawn Code:
#include <a_samp>

new zombiegate;
new humangate;
#include <core>
#include <float>
#include <zcmd>
#include <colors>
but the Problem , is whene i go IG and use /joinstars or /ucjoin it says" Unknown command "

so i mean , the script know zcmd commands not other .... I need Help
Reply
#2

ZCMD would be called, not the 'strcmp type commands'. You either use one or the other. And if you were smart, you would use the other (zcmd)
Reply
#3

Ye, what he above said. ZCMD works better and I'd recommend you to use ZCMD for all commands, or just don't use ZCMD at all [avoids confusion]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)