Help Me Please...
#1

I make this command >
PHP код:
CMD:hghelp(playerid,params[]){
    if(
PlayerInfo[playerid][LoggedIn] == 1) {
    if(
PlayerInfo[playerid][HGRank] >= || IsPlayerAdmin(playerid)) {
    
#pragma unused params
    
switch (Language[playerid])
    {
        case 
0:
        {
            
SendClientMessage(playeridred"__________|- Honor Gaming Command List (/HGhelp)");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGweaps: {33CCFF}Give you HG weapons + ammo!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGc: {33CCFF}For talk in HG chat!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGhome: {33CCFF}Teleport you to HG base!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGmembers: {33CCFF}Show you online HG members!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGsay: {33CCFF}Type in chat as HG member!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGneedh: {33CCFF}Tell other HG members that you need help!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/getallHG: Teleport all HG members to you!");
            
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGafk and /HGback: Make you afk and make you back as HG member!");
        }
    }
    return 
1;

But I found this ERROR >
Код:
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2440) : error 017: undefined symbol "sscanf"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2465) : error 017: undefined symbol "MessageToAdmins"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2506) : error 017: undefined symbol "PlayerName2"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2508) : error 017: undefined symbol "SaveToFile"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2515) : error 017: undefined symbol "TimeStamp"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2518) : error 017: undefined symbol "TimeStamp"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2520) : error 017: undefined symbol "TimeStamp"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2523) : error 017: undefined symbol "PlayerName2"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2525) : error 017: undefined symbol "SaveToFile"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(2679) : error 017: undefined symbol "UpdateConfig"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3113) : error 017: undefined symbol "CountBusinesses"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3114) : error 017: undefined symbol "LoadBusinesses"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3120) : error 017: undefined symbol "CountVehicles"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3121) : error 017: undefined symbol "LoadVehicles"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3124) : error 017: undefined symbol "ModVehicle"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3152) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3153) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3154) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3155) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3156) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3157) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3158) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3159) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3160) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3161) : error 017: undefined symbol "AddHouse"
H:\GAME\SA-MP Server\HGTDM\Gamemodes\BBTDM~RP.pwn(3162) : error 017: undefined symbol "AddHouse"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
If I delete the /hghelp command code, it's the pwn compiled very well.

Please Help Me To Solve This Problem...

Thanks And God Bless You All...
Reply
#2

maybe you can try this code
Quote:

CMD:hghelp(playerid,params[]){
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][HGRank] >= 7 || IsPlayerAdmin(playerid)) {
#pragma unused params
switch (Language[playerid])
{
case 0:
{
SendClientMessage(playerid, red, "__________|- Honor Gaming Command List (/HGhelp)");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGweaps: {33CCFF}Give you HG weapons + ammo!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGc: {33CCFF}For talk in HG chat!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGhome: {33CCFF}Teleport you to HG base!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGmembers: {33CCFF}Show you online HG members!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGsay: {33CCFF}Type in chat as HG member!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGneedh: {33CCFF}Tell other HG members that you need help!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/getallHG: Teleport all HG members to you!");
SendClientMessage(playerid, COLOR_ROYALBLUE, "*/HGafk and /HGback: Make you afk and make you back as HG member!");
}
}
}
}
return 1;
}

hope it helps
Reply
#3

PHP код:
CMD:hghelp(playerid){
    if(
PlayerInfo[playerid][LoggedIn] == 1){
        if(
PlayerInfo[playerid][HGRank] >= || IsPlayerAdmin(playerid)){
            switch(
Language[playerid]){
                case 
0: {
                    
SendClientMessage(playeridred"__________|- Honor Gaming Command List (/HGhelp)");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGweaps: {33CCFF}Give you HG weapons + ammo!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGc: {33CCFF}For talk in HG chat!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGhome: {33CCFF}Teleport you to HG base!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGmembers: {33CCFF}Show you online HG members!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGsay: {33CCFF}Type in chat as HG member!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGneedh: {33CCFF}Tell other HG members that you need help!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/getallHG: Teleport all HG members to you!");
                    
SendClientMessage(playeridCOLOR_ROYALBLUE"*/HGafk and /HGback: Make you afk and make you back as HG member!");
                }
            }
        }
    }
    return 
1;

Reply
#4

It's Working..
Thanks...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)