SA-MP Forums Archive
Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - 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: Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), (/showthread.php?tid=506313)



Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - Scrillex - 12.04.2014

Hey all..

Just I'm thinking how to make it work...

What would be the best to make a dynamic gang system.. Basically here is my enum.

I'm thinking just do it with cmd saving or with stock as GangPath I want it to be saved as gang choose name..

Which of them would be the best way?
pawn Code:
enum gInfo
{
    pLeader [24],
    pMembers,
    pCount,
    pHQID,
    pHQVW,
    pHQID,
    pHQExX,
    pHQExY
    pHQExZ,
    pHQExA,
    pHQEnX,
    pHQEnY,
    pHQEnZ
    pHQEnA,
    pGangMoney,
    pGangWeapon,
    pGangWeapon1,
    pGangWeapon2,
    pGangWeapon3,
    pGangWeapon4,
    pGangWeapon5,
    pGangWeapon6,
    pGangWeapon7,
    pGangWeapon8,
    pGangWeapon9,
    pGangAmmo,
    pGangAmmo1,
    pGangAmmo2,
    pGangAmmo3,
    pGangAmmo4,
    pGangAmmo5,
    pGangAmmo6,
    pGangAmmo7,
    pGangAmmo8,
    pGangAmmo9,
    pDrugs,
    pDrugs1,
    pDrugs2,
    pDrugs3,
    pDrugs4,
    pDrugs5,
    pDrugs6,
    pDrugs7,
    pDrugs8,
    pDrugs9,
    pLeaderSkin,
    pMemberSkin,
    pRankSkin,
    pRankSkin1,
    pRankSkin2,
    pRankSkin3,
    pRankSkin4,
    pRankSkin5,
    gColor,
    MOTD[128],
}
With best regards Scrilex.


Re: Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - MrCallum - 12.04.2014

Why do you have a comma after MOTD[128]?
Put not comma as it is the last one and when you are adding you put a comma then

I will look for one for you or try make you one!
_____________________________________________

If I helped +Rep


Re : Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - S4t3K - 12.04.2014

Because commas are necessary in enums

However, I noticed a missing ; at the end of the enum. (after the closing bracket)


Re: Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - MrCallum - 12.04.2014

Okay sorry i forgot about the ; haha, I am making a new one i will send it via PM! tommorrow or tonight

________________________________________
+Rep me if i helped


Re : Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - S4t3K - 12.04.2014

Why do you send it by PM ?

It could help someone else which may have the same problem later.
If it doesn't bother you, post it here.


Re: Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - iFarbod - 12.04.2014

; Finishing semi colon is optional for enum


Re: Y_INI GANG SYSTEM SAVING HELP.. (Just need right direction), - Scrillex - 12.04.2014

Yeah I know it was just written in fast hand.. But still would I need to use a stock or just make it as command and save /creategang [name] ?