SA-MP Forums Archive
Below the script does not work anymore. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Below the script does not work anymore. (/showthread.php?tid=624550)



Below the script does not work anymore. - SukMathcuck - 18.12.2016

This system below has problems, I remove this part of the script and it works everything below it correctly, if I put the script in gamemode again, it does not load the functions below.

That is, below the script does not work anything else, why?

PHP код:
    if(GetPVarInt(playerid"CarKey1") != SCRIPT_CARS)
    {
        if(
CarInfo[GetPVarInt(playerid"CarKey1")][cOwned] == 0SetPVarInt(playerid"CarKey1"SCRIPT_CARS);
        if(
CarInfo[GetPVarInt(playerid"CarKey1")][cModel] == 48CarInfo[GetPVarInt(playerid"CarKey1")][cModel]=483;
        
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey1")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
    
}
    if(
GetPVarInt(playerid"CarKey2") != SCRIPT_CARS)
    {
        if(
CarInfo[GetPVarInt(playerid"CarKey2")][cOwned] == 0SetPVarInt(playerid"CarKey2"SCRIPT_CARS);
        if(
CarInfo[GetPVarInt(playerid"CarKey1")][cModel] == 48CarInfo[GetPVarInt(playerid"CarKey1")][cModel]=483;
        
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey2")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
    
}
    if(
GetPVarInt(playerid"CarKey3") != SCRIPT_CARS)
    {
        if(
CarInfo[GetPVarInt(playerid"CarKey3")][cOwned] == 0SetPVarInt(playerid"CarKey3"SCRIPT_CARS);
        if(
CarInfo[GetPVarInt(playerid"CarKey1")][cModel] == 48CarInfo[GetPVarInt(playerid"CarKey1")][cModel]=483;
        
//if(strcmp(CarInfo[GetPVarInt(playerid, "CarKey3")][cOwner], PlayerName(playerid), true) == 0) CallRemoteFunction("GiveAchievement", "iii", playerid, 3, 0);
    




Re: Below the script does not work anymore. - BrianFaria - 18.12.2016

In which line gives error?


Re: Below the script does not work anymore. - SukMathcuck - 18.12.2016

All, I put this code and below it does not get anything else.

PHP код:
#define SCRIPT_CARS 3001
enum cInfo
{
    
cModel,
    
Float:cX,
    
Float:cY,
    
Float:cZ,
    
Float:cAngle,
    
cColorOne,
    
cColorTwo,
    
cOwner[128],
    
cOwned,
    
cValue,
    
cLock,
    
cFuel,
    
cDonate,
    
cMod[10],
    
cImpound,
    
cImpoundPrice,
    
cTWeapon[5],
    
cTAmmo[5],
    
cTCounter,
    
Float:cTArmour,
    
Float:cHealth,
    
cTOpen,
    
cPlate[128],
    
cPlateV,
    
cGPS,
    
cTime,
    
cGasCan,
    
cBomb,
    
cDelay,
    
cIns,
    
cMarijuana,
    
cCrack,
    
cCocaine,
    
cHaloperidol,
    
cDemerol,
    
cHeroin,
    
cLSD,
    
cSteroid,
    
cEcstasy,
    
cMeth,
    
cPCP,
    
cAspirin,
    
cMorphine
}
new 
CarInfo[SCRIPT_CARS][cInfo];
    if(
GetPVarInt(playerid"CarKey1") == 1001SetPVarInt(playerid"CarKey1"SCRIPT_CARS);
    if(
GetPVarInt(playerid"CarKey2") == 1001SetPVarInt(playerid"CarKey2"SCRIPT_CARS);
    if(
GetPVarInt(playerid"CarKey3") == 1001SetPVarInt(playerid"CarKey3"SCRIPT_CARS);
    if(
GetPVarInt(playerid"CarKey1") == 2001SetPVarInt(playerid"CarKey1"SCRIPT_CARS);
    if(
GetPVarInt(playerid"CarKey2") == 2001SetPVarInt(playerid"CarKey2"SCRIPT_CARS);
    if(
GetPVarInt(playerid"CarKey3") == 2001SetPVarInt(playerid"CarKey3"SCRIPT_CARS); 



Re: Below the script does not work anymore. - SukMathcuck - 19.12.2016

up! help?