[Pedido] Codigo
#1

Alguem Poderia Mim Aruma o Codigo de setar carro A Venda Agradeзo

Contato Skype: Netiinho2011
Reply
#2

PHP код:
if(strcmp("/ccar"cmdtrue) == 0)
    {
        if(
pAdmin[playerid] == 5)
        {
            new 
caridprecocor1cor2,
                
Float:XFloat:YFloat:ZFloat:ang;
            if(
sscanf(cmdtext"s[6]ddD(-1)D(-1)"cmdcaridprecocor1cor2))
            {
                
SendClientMessage(playeridCinza"Use: /ccar [id] [preзo] [cor1] [cor2]");
                return 
1;
            }
            if(
carid >= 400 && carid <= 611)
            {
                if(
carid == 425 || carid == 469 || carid == 538 || carid == 537 || carid == 520 || carid == 449 || carid == 447 || carid == 569 || carid == 570 || carid == 432)
                {
                    
SendClientMessage(playeridtcadm"Veнculo proibido, tente outro! | ID's = 400-611");
                    return 
1;
                }
                if(
IsPlayerInAnyVehicle(playerid))
                {
                    
GetPlayerPos(playeridXYZ);
                    
GetVehicleZAngle(GetPlayerVehicleID(playerid), ang);
                    
PlayerAddConceVehicle(playeridcaridprecoXYZangcor1cor2);
                }
                else
                {
                    
GetPlayerPos(playeridXYZ);
                    
GetPlayerFacingAngle(playeridang);
                    
PlayerAddConceVehicle(playeridcaridprecoXYZangcor1cor2);
                }
            }
            else
            {
                
SendClientMessage(playeridCinza"Valor invбlido, tente novamente! | ID's = 400-611");
            }
        }
        else
        {
            
SendClientMessage(playeridCinza"Vocк nгo tem permissгo.");
        }
        return 
1;
    } 
Coloque na public:

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
Reply
#3

Quote:
Originally Posted by MacacuVuador
Посмотреть сообщение
PHP код:
if(strcmp("/ccar"cmdtrue) == 0)
    {
        if(
pAdmin[playerid] == 5)
        {
            new 
caridprecocor1cor2,
                
Float:XFloat:YFloat:ZFloat:ang;
            if(
sscanf(cmdtext"s[6]ddD(-1)D(-1)"cmdcaridprecocor1cor2))
            {
                
SendClientMessage(playeridCinza"Use: /ccar [id] [preзo] [cor1] [cor2]");
                return 
1;
            }
            if(
carid >= 400 && carid <= 611)
            {
                if(
carid == 425 || carid == 469 || carid == 538 || carid == 537 || carid == 520 || carid == 449 || carid == 447 || carid == 569 || carid == 570 || carid == 432)
                {
                    
SendClientMessage(playeridtcadm"Veнculo proibido, tente outro! | ID's = 400-611");
                    return 
1;
                }
                if(
IsPlayerInAnyVehicle(playerid))
                {
                    
GetPlayerPos(playeridXYZ);
                    
GetVehicleZAngle(GetPlayerVehicleID(playerid), ang);
                    
PlayerAddConceVehicle(playeridcaridprecoXYZangcor1cor2);
                }
                else
                {
                    
GetPlayerPos(playeridXYZ);
                    
GetPlayerFacingAngle(playeridang);
                    
PlayerAddConceVehicle(playeridcaridprecoXYZangcor1cor2);
                }
            }
            else
            {
                
SendClientMessage(playeridCinza"Valor invбlido, tente novamente! | ID's = 400-611");
            }
        }
        else
        {
            
SendClientMessage(playeridCinza"Vocк nгo tem permissгo.");
        }
        return 
1;
    } 
Coloque na public:

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 

Man da esse erro

Код:
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1453) : error 017: undefined symbol "cmd"
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1455) : error 017: undefined symbol "pAdmin"
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1455) : warning 215: expression has no effect
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1455) : error 001: expected token: ";", but found "]"
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1455) : error 029: invalid expression, assumed zero
C:\Users\NetiinhoO\Desktop\Basic - SAMP\gamemodes\birpg.pwn(1455) : fatal error 107: too many error messages on one line

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


5 Errors.
Reply
#4

Alguem mim ajuda esse codigo ta dando esse erro por favor sou novo nessa area
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)