Symbol never used problem
#5

Or stock it
PHP код:
stock Dialog_StatsTvrtka(playeridresponselistitem)
{
    if(!
response) return 1;
    new 
OtherPlayerBusIDTDialogList[256];
    
OtherPlayer APlayerData[playerid][DialogOtherPlayer];
    
BusID APlayerData[OtherPlayer][TrenutnaFirma];
    switch (
listitem)
    {
        case 
0
        {
            
format(TDialogList256"%s{00FF00}Naziv Tvrtke{FFFFFF} %s\n"TDialogListDataTvrtke[BusID][ImeTvrtke]);
            
format(TDialogList256"%s{00FF00}Zaposlenih{FFFFFF} %i\n"TDialogListDataTvrtke[BusID][Zaposlenih]);
            
format(TDialogList256"%s{00FF00}Vlasnik{FFFFFF} %s\n"TDialogListDataTvrtke[BusID][Vlasnik]);
            
format(TDialogList256"%s{00FF00}Cijena Tvrtke{FFFFFF} $%i\n"TDialogListDataTvrtke[BusID][KCijena]);
            
ShowPlayerDialog(playeridDialogInfoTvrtkeDIALOG_STYLE_MSGBOX"Informacije Tvrtke"TDialogList"Odaberi""Odustani");
        }
        case 
1
        {
            
SetPlayerPos(playeridDataTvrtke[BusID][TvrtkaX], DataTvrtke[BusID][TvrtkaY], DataTvrtke[BusID][TvrtkaZ]);
        }
    }
    return 
1;    

PHP код:
stock Tvrtka_Evict(BusID)
{
    
// Setup local variables
    
new Msg[128], Name[24], bool:PlayerOnline false;
    
// Check if the business is owned
    
if (DataTvrtke[BusID][Kupljena] == true)
    {
        
// Loop through all players to find the owner (if he's online)
        
for (new pidpid MAX_PLAYERSpid++)
        {
            
// Check if this player is online
            
if (IsPlayerConnected(pid))
            {
                
// Get that player's name
                
GetPlayerName(pidNamesizeof(Name));
                
// Compare if this player has the same name as the owner of the business
                
if (strcmp(DataTvrtke[BusID][Vlasnik], Namefalse) == 0)
                {
                    
// Set PlayerOnline to "true"
                    
PlayerOnline true;
                    
APlayerData[pid][TrenutnaFirma] = 0;
                    
APlayerData[pid][VTvrtke] = false;
                    
format(Msg128"{FF0000}Tvoja tvrtka {FFFF00}\"%s\"{FF0000} je izbrisana"DataTvrtke[BusID][ImeTvrtke]);
                    
SendClientMessage(pid0xFFFFFFFFMsg);
                    
PlayerFile_Save(pid);
                    break;
                }
            }
        }
        
// Check if the player was not online
        
if (PlayerOnline == false)
            
// Remove the house from the player's account (open the account, remove the data and re-save it)
            
PlayerFile_RemoveProperty(DataTvrtke[BusID][Vlasnik], 0BusID);
    }
    
// Clear ownership of the business
    
DataTvrtke[BusID][Kupljena] = false;
    
DataTvrtke[BusID][Vlasnik] = 0;
    
DataTvrtke[BusID][Zarada] = 0;
    
DataTvrtke[BusID][Zaposlenih] = 0;
    
DataTvrtke[BusID][Poslova] = 0;
    
DataTvrtke[BusID][ZadnjaIsplata] = 0;
    
// Update the entrance of the business
    
DataTvrtke_UpdateEntrance(BusID);
    
// Save the businessfile
    
DataTvrtke_Save(BusID);

Reply


Messages In This Thread
Symbol never used problem - by Hunud - 31.08.2016, 09:12
Re: Symbol never used problem - by Vince - 31.08.2016, 09:16
Re: Symbol never used problem - by Hunud - 31.08.2016, 09:18
Re: Symbol never used problem - by FuNkYTheGreat - 31.08.2016, 09:22
Re: Symbol never used problem - by Shinja - 31.08.2016, 12:06
Re: Symbol never used problem - by Sew_Sumi - 31.08.2016, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)