[Ajuda] Comando /contrato
#1

Bom galera, eu peguei o seguinte comando de uma GM e editei:

PHP код:
    if(strcmp(cmd"/contrato"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
                return 
true;
            }
            
giveplayerid ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
                return 
true;
            }
            
moneys strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
                return 
true;
            }
            if(
moneys 10000)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Contrato Minimo 10k (10000)");
                return 
true;
            }
            if(
PlayerInfo[playerid][pLevel] < 4)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк precisa de no minimo nivel 4.");
                return 
true;
            }
            if(
GetPlayerMoney(playerid) < moneys)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem esta grana toda.");
                return 
true;
            }
            if (
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
playermoney GetPlayerMoneyEx(playerid);
                    if (
moneys && playermoney >= moneys)
                    {
                        if(
strcmp(tmp,"Hitman",true) == 0)
                        {
                            
GivePlayerMoneyEx(playerid, (moneys));
                            
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
                            
format(stringsizeof(string), "HITMANS: %s Colocou um contrato em %s, por $%d.",sendernamegiveplayermoneys);
                            
SendFamilyMessage(8COLOR_YELLOWstring);
                            
format(stringsizeof(string), "*HITMANS: Vocк colocou um contrato em %s, por $%d.",giveplayermoneys);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
PlayerPlaySound(playerid10520.00.00.0);
                            return 
true;
                        }
                        if(
strcmp(tmp,"triad",true) == 0)
                        {
                            
GivePlayerMoneyEx(playerid, (moneys));
                            
PlayerInfo[giveplayerid][pHeadValueT]+=moneys;
                            
format(stringsizeof(string), "TRIADS: %s Colocou um contrato em %s, por $%d.",sendernamegiveplayermoneys);
                            
SendFamilyMessage(22COLOR_YELLOWstring);
                            
format(stringsizeof(string), "*TRIADS: Vocк colocou um contrato em %s, por $%d.",giveplayermoneys);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
PlayerPlaySound(playerid10520.00.00.0);
                            return 
true;
                        }
                        else
                        {
                            
SendClientMessage(playeridCOLOR_GRAD1"   USE: /contrato [id] [Quantia] TRIAD ou HITMAN");
                            return 
true;
                        }
                    }
                    
format(stringsizeof(string), "   Vocк nгo tem R$%d em mгos!"moneys);
                    
SendClientMessage(playeridCOLOR_WHITEstring);
                    return 
true;
                }
                else
                {
                    
format(stringsizeof(string), "   %d nгo й um jogador ativo."giveplayerid);
                    
SendClientMessage(playeridCOLOR_GRAD1string);
                }
            }
        }
//not connected
        
return true
Quando coloco esse comando na minha GM dб os seguintes erros:

Quote:

C:\Users\Jeferson\Desktop\samp03\pawno\include\sei f_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Users\Jeferson\Desktop\samp03\pawno\include\ser vermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Users\Jeferson\Desktop\samp03\pawno\include\ser vermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(979) : error 004: function "SaveCars" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(1996) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Jeferson\Desktop\BGT.pwn(2003) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Jeferson\Desktop\BGT.pwn(2042) : error 017: undefined symbol "GetName"
C:\Users\Jeferson\Desktop\BGT.pwn(2043) : error 017: undefined symbol "GetName"
C:\Users\Jeferson\Desktop\BGT.pwn(2044) : error 017: undefined symbol "GetName"
C:\Users\Jeferson\Desktop\BGT.pwn(2094) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(2104) : error 004: function "OnPlayerText" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(2104) : error 004: function "OnPlayerText" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(3505) : error 004: function "ClearChatbox" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(3597) : error 004: function "ClearChatbox" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(3614) : error 004: function "ClearChatbox" is not implemented
C:\Users\Jeferson\Desktop\BGT.pwn(5005) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5047) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5089) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5131) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5160) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5189) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(521 : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5247) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5276) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5324) : error 017: undefined symbol "IsNumero"
C:\Users\Jeferson\Desktop\BGT.pwn(5353) : error 017: undefined symbol "IsNumero"

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


26 Errors.

Alguйm pode me ajudar?
Reply


Messages In This Thread
Comando /contrato - by jefrens - 28.07.2015, 00:35
Re: Comando /contrato - by iTakelot - 28.07.2015, 00:50
Re: Comando /contrato - by jefrens - 28.07.2015, 01:06

Forum Jump:


Users browsing this thread: 3 Guest(s)