SA-MP Forums Archive
Gang Help - 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: Gang Help (/showthread.php?tid=435325)



Gang Help - CurlyPwn - 06.05.2013

Look Leme Give Example: There Is A Icon....When Ppl Press What Ever Alt Or Shift They Join The Gang And Then When They Write /leave They Leave it. Can Someone Help?

i create a enum

Код:
enum
{
	TEAM_GROVE,
	TEAM_BALLAS,
	TEAM_AZTECAS,
	TEAM_VAGOS,
	TEAM_RIFA,
	TEAM_TRIADS,
	TEAM_NANG_BOYS,
	TEAM_MAFIA,
}
but give me a error
Код:
 error 001: expected token: "-identifier-", but found "-integer value-"
also if i want to start making the teams how i do it? can someone give example pls


Re: Gang Help - lQs - 06.05.2013

pawn Код:
enum gInfo
{
    TEAM_GROVE,
    TEAM_BALLAS,
    TEAM_AZTECAS,
    TEAM_VAGOS,
    TEAM_RIFA,
    TEAM_TRIADS,
    TEAM_NANG_BOYS,
    TEAM_MAFIA
}
new GangInfo[MAX_PLAYERS][gInfo];



Re: Gang Help - CurlyPwn - 06.05.2013

Still Gives Me A Error
Quote:

C:\Users\Andrew\Desktop\GTA Work\iFreeRoam\gamemodes\iFreeRoam.pwn(34) : error 001: expected token: "-identifier-", but found "-integer value-"

Line 34 Is TEAM_GROVE


Re: Gang Help - lQs - 06.05.2013

pawn Код:
enum gInfo
{
    pGrove,
    pBallas,
    pAztecas,
    pVagos,
    pRifa,
    pTriads,
    pNang,
    pMafia
}
new GangInfo[MAX_PLAYERS][gInfo];
Works for me!


Re: Gang Help - CurlyPwn - 06.05.2013

xD Now It Does Thanks


Re: Gang Help - CurlyPwn - 06.05.2013

How i make it when the player presses Enter Or shift or alt on the icon they join the gang? Also +Reped


Re: Gang Help - Tanush123 - 06.05.2013

Where do they choose the gang? In the skin selection?


Re: Gang Help - CurlyPwn - 06.05.2013

No i will have a icon in each hq (its a freeroam server) and which ever gang they want to be in they choose, and when they want to leave they write /leave


Re: Gang Help - CurlyPwn - 06.05.2013

Anychance this can be done?