Cmd Prob?
#3

ok so i downloaded this fs from here (dont remember from where Sorry!) and had this lines
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/snow"cmdtexttrue5) == 0// Put snow for all players (Administrator)
    
{
        for(new 
0<MAX_PLAYERSi++){
        if(!
IsPlayerConnected(i)) continue;
        if(
IsPlayerAdmin(i)){
        if(
SnowOff[i] == 0){
        
AttachObjectToPlayer(Snow[i], i1.50.5001.52);
        
SnowOff[i] = 0;}}}
        return 
1;
    }
    if (
strcmp("/removesnow"cmdtexttrue7) == 0//  Removed snow for all players (Administrator)
    
{
        for(new 
0<MAX_PLAYERSi++){
        if(!
IsPlayerConnected(i)) continue;
        if(
IsPlayerAdmin(i)){
        if(
SnowOff[i] == 1){
        
DestroyPlayerObject(iSnow[i]);
        
SnowOff[i] = 1;}}}
        return 
1;
    }
    if (
strcmp("/snowon"cmdtexttrue7) == 0// Put snow for you
    
{
         if(
SnowOff[playerid] == 0) return SendClientMessage(playeridred"Vous avez mit la neige pour vous.");
         
AttachObjectToPlayer(Snow[playerid], playerid1.50.5001.52);
         
SnowOff[playerid] = 0;
         return 
1;
    }
    if (
strcmp("/snowoff"cmdtexttrue8) == 0// Remove snow for you
    
{
         if(
SnowOff[playerid] == 1) return SendClientMessage(playeridred"Vous avez enlever la neige pour vous.");
         
DestroyPlayerObject(playeridSnow[playerid]);
         
SnowOff[playerid] = 1;
         return 
1;
    }
    return 
0;

I made many cmds by strcmp but no one work not even gives an error!
Reply


Messages In This Thread
Cmd Prob? - by KP2 - 28.10.2012, 18:25
Re: Cmd Prob? - by VIP475 - 28.10.2012, 18:29
Re: Cmd Prob? - by KP2 - 29.10.2012, 17:55
Re: Cmd Prob? - by OKStyle - 23.12.2014, 04:41
Re: Cmd Prob? - by Glossy42O - 23.12.2014, 05:46

Forum Jump:


Users browsing this thread: 2 Guest(s)