CMD problem
#9

Quote:
Originally Posted by jlalt
Посмотреть сообщение

PHP код:
enum pInfo
{
pMember,
pLeader,
}
new 
PlayerData[MAX_PLAYERS][pInfo];
new 
CiorditTimp[MAX_PLAYERS];
CMD:ciordeste(playerid,params[]) {
 if(
PlayerData[playerid][pMember] == || PlayerData[playerid][pLeader] == 5)
 {
             if(
CiorditTimp[playerid] == 0)
             {
                 new 
victima GetClosestPlayer(playerid);
                 if(
GetDistanceBetweenPlayers(playerid,victima) < 5)
                {
                    if(
PlayerData[victima][pMember] != || PlayerData[victima][pLeader] != 5)
                    {
                         new 
banili random(1000) + 500;
                         new 
string[128];
                         new 
nume1[24], nume2[24];
                         
GetPlayerName(playeridnume1sizeof(nume1));
                         
GetPlayerName(victimanume2sizeof(nume2));
                         
format(stringsizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!"nume1banili);
                         
SendClientMessage(victimaCOLOR_WHITEstring);
                         
format(stringsizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!"nume2banili);
                         
SendClientMessage(playeridCOLOR_WHITEstring);
                         
GivePlayerCash(playeridbanili);
                         
GivePlayerCash(victima, -banili);
                         
CiorditTimp[playerid] = 1;
                         
SetTimerEx("ciordealatimp"120000false"i"playerid);
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"Nu iti poti ciordi fratele!");
                        return 
1;
                    }
                    }
                    else
                    {
                    
SendClientMessage(playeridCOLOR_GREY"Nu e nimeni langa tine!");
                    return 
1;
                    }
                    }
                    else
                    {
                
SendClientMessage(playeridCOLOR_GREY"Trebuie sa astepti 2 minute intre ciordiri!");
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY"Nu faci parte din factiunea Rromi!");
            return 
1;
        }
 return 
1;

Код:
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55535) : warning 219: local variable "PlayerData" shadows a variable at a preceding level
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55538) : warning 219: local variable "CiorditTimp" shadows a variable at a preceding level
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55540) : error 017: undefined symbol "ciordeste"
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55551) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55590) : warning 225: unreachable code
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : warning 213: tag mismatch
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : error 032: array index out of bounds (variable "PlayerData")
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55615) : warning 213: tag mismatch
Reply


Messages In This Thread
CMD problem - by Ax3l123 - 15.08.2015, 21:38
Re: CMD problem - by UnDetectable - 16.08.2015, 01:21
Re: CMD problem - by Keyhead - 16.08.2015, 02:19
Re: CMD problem - by Ax3l123 - 16.08.2015, 07:58
Re: CMD problem - by IgorLuiz - 16.08.2015, 08:24
Re: CMD problem - by Ax3l123 - 16.08.2015, 09:24
Re: CMD problem - by IgorLuiz - 16.08.2015, 09:35
Re: CMD problem - by jlalt - 16.08.2015, 10:03
Re: CMD problem - by Ax3l123 - 16.08.2015, 10:11
Re: CMD problem - by jlalt - 16.08.2015, 10:12

Forum Jump:


Users browsing this thread: 1 Guest(s)