Some question
#1

I was add 2 codes in my gm, but it may something went wrong
Code 1 :
PHP код:
CMD:naubanhpizza(playeridparams[])
{
    if (!
IsPlayerInRangeOfPoint(playerid3.0375.5077, -118.80281001.4995)) return SendClientMessage(playeridCOLOR_GREY"Toan bo khu mua bao hiem da bi khoa, hay ra sfvip de mua baohiem.");
    {
    
SendClientMessage(playeridCOLOR_GREEN,"Ban da che tao banh pizza.");
    
PlayerInfo[playerid][pRFLTeam]= 1;
    return 
1;
    }

Code 2 :
PHP код:
CMD:datbanhlenxe(playeridparams[])
{
    if(
PlayerInfo[playerid][pRFLTeam] != 0)
    {
        
SendClientMessageEx(playerid,COLOR_GREY," Ban chua nau banh pizza !");
    }
    else
    {
        new 
closestcar GetClosestCar(playerid);
        if(
IsPlayerInRangeOfVehicle(playeridclosestcar10.0))
        {
            if(!
IsABike(closestcar))
            {
                
SendClientMessageEx(playerid,COLOR_GREY," Ban khong gan mot chiec xe nao do !");
            }
            if(
PlayerInfo[playerid][pRFLTeam] == 1)
            {
            
PlayerInfo[playerid][pFallIntoFun] = 1;
            }
          }
        }
            return 
1;

the code 1 i made to set player pRFLTeam = 1, so that player can use the next cmd(/duabanhlenxe), but when i type , it always told me didnt have a pice ( it mean pRFLTeam = 0)
Could sbdy help and edit for me please
Reply


Messages In This Thread
Some question - by LuisPark - 07.02.2015, 14:23
Re: Some question - by HazardouS - 07.02.2015, 14:27
Re: Some question - by Tamy - 07.02.2015, 14:28
Re: Some question - by LuisPark - 07.02.2015, 14:48

Forum Jump:


Users browsing this thread: 3 Guest(s)