Realchat[Rep]
#1

it doesent work.no errors just no work.2.i make it in public?forward?

1.
PHP код:
new realchat 1
2.
PHP код:
if (realchat)
    {
        if(
gPlayerLogged[playerid] == 0)
        {
            return 
0;
          }
        new 
i;
        while (
text[++i])
        
text[0] = toupper(text[0]);
        {
            if(
text[i] > 64 && text[i]< 91text[i] += 32;
        }
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "{247BFF}%s Spune: {FF3F0F}%s"sendernametext);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        return 
0;
    }
    return 
1;

Reply
#2

I remember you... 'Everyone can login on every account' guy.
And yet again, the information we get is minimal.
To answer question 2 (if I understand what you mean), you put it under OnPlayerText..
Reply
#3

Fixed!
Reply
#4

1 warning since up i fixed the upper part


PHP код:
//////
SendClientMessage(playeridCOLOR_LIGHTRED"What is your Origin? (Type in: America, Europe, Asia or Africa)");
        }
        return 
0;
          }
          return 
0;
        }
(
Warning)    if(MarriageCeremoney[playerid] > 0// This line (72073)
        
{
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("yes"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
        { 
PHP код:
(72073) : warning 225unreachable code 
Reply
#5

Remove the return 0; and the closing bracket.
Reply
#6

both return 0;?
Reply
#7

no, one, with the bracket, if u then get like 100 errors, add the bracket back but not the return
Reply
#8

ok thanks.it works.how can i repair bugs??this v buy is a bug each player can buy 1000 cars..buy the cmd is setto buy only 2 cars not 1000 get it??

PHP код:
 else if(strcmp(x_nr,"buy",true) == 0)
        {
        if( !
IsPlayerInAnyVehicleplayerid ) ) return SendClientMessageplayerid, -1"Nu esti in masina de Dealership! " );
        new 
car 1;
        new 
model GetVehicleModel(idcar);
        if(
IsASalesVehicle(idcar))
        {
            if(
PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2]) { }
            else return 
SendClientMessage(playeridCOLOR_GREY,"* Deja ai 2 masini!");
            if(
GetPlayerMoney(playerid) >= GetVehiclePrice(idcar))
            {
            if(
PlayerInfo[playerid][pCarLic] == 1)
                {
                    for(new 
1sizeof(CarInfo); h++)
                    {
                        if(
CarInfo[h][cOwned] == 0)
                        {
                            
car h;
                            
9999;
                        }
                    }
                    
format(stringsizeof(string),"LARP/Vehicles/%d.ini",car)
                    
dini_Create(string);
                    if(
PlayerInfo[playerid][pPcarkey] != 9999) { PlayerInfo[playerid][pPcarkey2] = car; }
                    else { 
PlayerInfo[playerid][pPcarkey] = car; }
                    
CarInfo[car][cOwned] = 1;
                    
strmid(CarInfo[car][cOwner], sendername0strlen(sendername), 999);
                    
SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar));
                    if(
IsModelAPlane(idcar) || IsModelAHeli(idcar))
                    {
                        
CarInfo[car][cLocationx] = 1432.6451;
                        
CarInfo[car][cLocationy] = 1378.7216;
                        
CarInfo[car][cLocationz] = 11.5507;
                        
CarInfo[car][cAngle] = 359.2072;
                        
SendClientMessage(playeridCOLOR_YELLOW2"Your Aircraft has been deliveried to Las Venturas Airport, you can get it there!");
                        
SendClientMessage(playeridCOLOR_YELLOW2"Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
                        
SendClientMessage(playeridCOLOR_NICERED"REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");
                        
GameTextForPlayer(playerid"~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~Las Venturas Airport!"50003);
                    }
                    else if(
IsModelABoat(idcar))
                    {
                        
CarInfo[car][cLocationx] = -1568.9614;
                        
CarInfo[car][cLocationy] = 169.0118;
                        
CarInfo[car][cLocationz] = -0.6016;
                        
CarInfo[car][cAngle] = 208.7506;
                        
SendClientMessage(playeridCOLOR_YELLOW2"Your Boat has been deliveried to San Fierro Docks, you can get it there!");
                        
SendClientMessage(playeridCOLOR_YELLOW2"Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
                        
SendClientMessage(playeridCOLOR_NICERED"REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");
                        
GameTextForPlayer(playerid"~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~San Fierro Docks!"50003);
                    }
                    else
                    {
                        
CarInfo[car][cLocationx] = 563.0703;
                        
CarInfo[car][cLocationy] = -1262.5576;
                        
CarInfo[car][cLocationz] = 17.1727;
                        
CarInfo[car][cAngle] = 11.4227;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"Bravo Tiai luat masina!.Masina ta este la Dealership LS Infata.");
                        
SendClientMessage(playeridCOLOR_LIGHTRED"Daca tio lasi unde nu trebuie vine un TCC si ea masina.");
                        
GameTextForPlayer(playerid"~p~BRAVo~n~~w~Masina ta este mai infata la Dealership LS."50003);
                    }
                    
CarInfo[car][cModel] = model;
                    
CarInfo[car][cVirWorld] = 0;
                    
CarInfo[car][cPaintjob] = 999;
                    
CarInfo[car][cColorOne] = 3;
                    
CarInfo[car][cColorTwo] = 0;
                    
CarInfo[car][cComponent0] = 0;
                    
CarInfo[car][cComponent1] = 0;
                    
CarInfo[car][cComponent2] = 0;
                    
CarInfo[car][cComponent3] = 0;
                    
CarInfo[car][cComponent4] = 0;
                    
CarInfo[car][cComponent5] = 0;
                    
CarInfo[car][cComponent6] = 0;
                    
CarInfo[car][cComponent7] = 0;
                    
CarInfo[car][cComponent8] = 0;
                    
CarInfo[car][cComponent9] = 0;
                    
CarInfo[car][cComponent10] = 0;
                    
CarInfo[car][cComponent11] = 0;
                    
CarInfo[car][cComponent12] = 0;
                    
CarInfo[car][cComponent13] = 0;
                    
DestroyVehicle(car);
                    
ownedcar[car] = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
                    
PlayerPlayMusic(playerid);
                    
SendClientMessage(playeridCOLOR_GROVE"Congratulations on your new purchase!");
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Type /vehiclehelp to view the vehicle manual!");
                    
gEngine[playerid] = 0;
                    
engineOn[GetPlayerVehicleID(playerid)] = false;
                    
SendClientMessage(playeridCOLOR_BLUE"Remember to set the new Security Code of the Car!");
                    new 
pass[24];
                    
format(passsizeof(pass),"%d%d%d",random(9),random(9),random(9));
                    
CarInfo[car][cCode] = strval(pass);
                    
OnPropUpdate(4,car);
                    
OnPlayerUpdateEx(playerid);
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_WHITE"* For security reasons, a Driving License is needed to buy a car!");
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"  You don't have enough cash with you ! ");
                return 
1;
            }
        }
        } 
Reply
#9

nevermind. delete
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)