SA-MP Forums Archive
Command bug help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command bug help (/showthread.php?tid=338820)



Command bug help - boyan96 - 01.05.2012

What is wrong because my pawno is crashing

PHP код:
if(strcmp(cmd"/penis",true)==0)
    {
     if(
IsPlayerInRangeOfPoint(playerid7.0, -105.6702,-11.2050,1000.7188))
     
SetPlayerAttachedObjectplayerid115868, -0.04968, -0.0062, -0.10838581.45829723.478149184.1237640.6224131.0416091.012785 ); //
        
}
            }
            else
            {
                
SendClientMessage(playeridCOLOR_YELLOW"11111111111111!");
            }
        }
        return 
1;
    } 



Re: Command bug help - ]Rafaellos[ - 01.05.2012

pawn Код:
if(strcmp(cmd, "/penis",true)==0)

{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, -105.6702,-11.2050,1000.7188))
   
    {
        SetPlayerAttachedObject( playerid, 1, 1586, 8, -0.04968, -0.0062, -0.108385, 81.458297, 23.478149, 184.123764, 0.622413, 1.041609, 1.012785 ); //
       
    }
    else
   
    {
        SendClientMessage(playerid, COLOR_YELLOW, "11111111111111!");
       
    }
    return 1;
}