Invalid/unsupported p-code file format
#2

PHP код:
if(strcmp(cmd"/warn"true )== 0)
    {
        if(
IsPlayerConnected(playerid))
        {
       
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessageplayeridCOLOR_GRAD2" DEBUG: /hoiata <ID/NIMI> <Pхhjus> ");
                return 
1;
            }
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY" VIGA: Sa ei ole sisse logitud. ");
                return 
1;
                }
                if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playeridCOLOR_GREY" VIGA: Ainult adminid vхivad seda kдsklust kasutada. ");
            
            
giveplayerid ReturnUser(tmp);
            if(
IsPlayerConnected(giveplayerid))
            {
                    if( 
giveplayerid != INVALID_PLAYER_ID )
                    {
                        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        new 
length strlen(cmdtext);
                        while ((
idx length) && (cmdtext[idx] <= ''))
                        {
                            
idx++;
                        }
                        new 
offset idx;
                        new 
result[64];
                        while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
                        {
                            
result[idx offset] = cmdtext[idx];
                            
idx++;
                        }
                        
result[idx offset] = EOS;
                        if(!
strlen(result))
                        {
                            
SendClientMessageplayeridCOLOR_GRAD2" DEBUG: /hoiata <ID/NIMI> <Pхhjus>");
                            return 
1;
                        }
                        
PlayerInfo[giveplayerid][pWarns] ++;
                        if(
PlayerInfo[giveplayerid][pWarns] >= 5)
                        {
                            
PlayerInfo[playerid][pLocked] = 2;
                            
SendClientMessage(playeridCOLOR_LIGHTRED"Sa said banni, sest sul tдitusid 5 hoiatust.");
                            
Ban(giveplayerid);
                            return 
1;
                        }
                        
format(stringsizeof(string), "Admin %s hoiatas sind. Pхhjus: %s. "sendernameresult);
                        
SendClientMessage(giveplayeridCOLOR_LIGHTREDstring);
                        
format(stringsizeof(string), "Sa hoiatasid %s'i. Pхhjus: %s."giveplayerresult);
                        
SendClientMessage(playeridCOLOR_LIGHTREDstring);
                        return 
1;
                    }
            }
        }
        return 
1;
    }

Try this
Reply


Messages In This Thread
Invalid/unsupported p-code file format - by vent - 27.08.2011, 11:24
Re: Invalid/unsupported p-code file format - by =WoR=G4M3Ov3r - 27.08.2011, 11:28
Re: Invalid/unsupported p-code file format - by vent - 27.08.2011, 11:32
Re: Invalid/unsupported p-code file format - by =WoR=G4M3Ov3r - 27.08.2011, 11:38
Re: Invalid/unsupported p-code file format - by vent - 27.08.2011, 11:44
Re: Invalid/unsupported p-code file format - by vent - 29.08.2011, 11:31

Forum Jump:


Users browsing this thread: 1 Guest(s)