[Ayuda] No me compila
#1

Bueno, recien empeze con esto del SAMP, hice un "Sistema" de marihuana, pero me tira unos errores que no se como arreglarlos. Le arregle como 4 erorres y warnings que tenia, pero me ayude con el tutorial de the_chaoz y no se que esta mal. Sн alguien me puede ayudar asi aprendo:

PHP код:
#include <a_players>
#include <a_samp>
#pragma tabsize 0
#define COLOR_ROJO 0xFF0000FF
#define COLOR_AZUL 0x0000FFFF
forward Maria();
new 
Marihuana[MAX_PLAYERS];
new 
Cosecha[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
       if (
strcmp("/marihuana"cmdtexttrue10) == 0)
       {
           
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] Para comprar Marihuana tienes que poner el comando: /comprar");
           return 
1;
       }
       if (
strcmp("/comprar"cmdtexttrue10) == 0)
       {
           if(
Marihuana[playerid])
           {
               
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] Ya tienes marihuana para plantar");
               return 
1;
           }
           if(
GetPlayerMoney(playerid) <= 49)
           {
               
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] No tienes dinero suficiente");
           }
           else
           {
                
Marihuana[playerid] = 1;
                
GivePlayerMoney(playerid, -50);
                
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] Haz comprado Marihuana");
            }
            if (
strcmp("/plantar"cmdtexttrue10) == 0)
            {
                
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] Haz plantado correctamente la marihuana. Espera 1 dнa para recojerla");
                
SetTimer("Maria"86.400.000false);
                    return 
1;
                }
            }
            if (
strcmp("/vender"cmdtexttrue10) == 0)
            {
                if(
Cosecha[playerid])
                {
                    
GivePlayerMoney(playerid200);
                    
SendClientMessage(playerid,0xFF0000FF,"[ ATENCION ] Vendiste tu marihuana satisfactoriamente. Ganaste $200");
                }
            }
       }
       return 
1;
}
public 
Maria(playerid)
{
    
SendClientMessageForPlayer(playerid, -1"[ ATENCION ] Tu marihuana ha crecido. Para venderla utiliza el comando: /vender");
    
Cosecha[playerid] = 1;
    return 
1;

Gracias de antemano

PD: Los errores:

Код:
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : warning 213: tag mismatch
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : error 001: expected token: ",", but found "."
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : error 029: invalid expression, assumed zero
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : warning 215: expression has no effect
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : warning 215: expression has no effect
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : error 001: expected token: ";", but found ")"
C:\Users\Rodrigo\Desktop\Scripts\FS\Sistema de Marihuana - by RodriiK.pwn(46) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
[Ayuda] No me compila - by RodriiK - 10.01.2013, 21:25
Re: [Ayuda] No me compila - by Fabio11 - 10.01.2013, 21:33
Re: [Ayuda] No me compila - by RodriiK - 10.01.2013, 21:38
Respuesta: [Ayuda] No me compila - by El Bardo - 10.01.2013, 21:40
Respuesta: Re: [Ayuda] No me compila - by EduGTA - 10.01.2013, 21:40
Re: [Ayuda] No me compila - by Fabio11 - 10.01.2013, 21:40
Re: [Ayuda] No me compila - by RodriiK - 10.01.2013, 21:46
Re: [Ayuda] No me compila - by Fabio11 - 10.01.2013, 21:48
Re: [Ayuda] No me compila - by RodriiK - 10.01.2013, 21:55
Re: [Ayuda] No me compila - by RodriiK - 10.01.2013, 22:06

Forum Jump:


Users browsing this thread: 3 Guest(s)