SA-MP Forums Archive
Y_Groups & Y_Classes - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Y_Groups & Y_Classes (/showthread.php?tid=272225)



Y_Groups & Y_Classes - Riddick94 - 27.07.2011

When player connecting to server it shows a Dialog were player choosing a group (Group_SetPlayer) and then sending player to class selection (Class_ReturnToSelection(playerid) all is okey but.. when player type group #1 skins showing but with skin from group none.

Код:
	Class_AddForGroup(SerwerInfo[gGroup1], 15, 	0.0, 0.0, 0.0, 0.0);
	Class_AddForGroup(SerwerInfo[gGroup1], 16, 		0.0, 0.0, 0.0, 0.0);
	Class_AddForGroup(SerwerInfo[gGroup1], 17, 		0.0, 0.0, 0.0, 0.0);
	Class_AddForGroup(SerwerInfo[gGroup1], 18, 	0.0, 0.0, 0.0, 0.0);
	
	Class_AddForGroup(SerwerInfo[gNoGroup], 0, 0.0, 0.0, 0.0, 0.0);
But when player choosed a [gNoGroup] he got only this one skin.. Group #1 got skins for Group #1 and for [gNoGroup].

Second problem is..

Код:
	if(bool:Group_GetPlayer(Group:SerwerInfo[gGroup1], playerid))
	{
		SendClientMessage(playerid, COLOR_WHITE, "Message.");
	}else SendClientMessage(playerid, COLOR_WHITE, "Not this group.");
When i type for the first time a group #1 it works.. but when i type a command /group2 (it's sets me a [gNoGroup]) i can use still this comand. I need to respawn player or what?

Waiting for help : >


Re: Y_Groups & Y_Classes - Riddick94 - 27.07.2011

Anyone please.. i need help with it fast.

edit://
I noticed i need to remove player from groups. Now trying to work with it all.


Re: Y_Groups & Y_Classes - Riddick94 - 27.07.2011

For the first time when i was starting with Pawn language i was using strcmp as all of us i think.. for the second it was a DCMD and now ZCMD.. don't know maybe some time i'll change to y_commands..

by the way..
Код:
[21:30:42]  ======================================= 
[21:30:42]  |                                     | 
[21:30:42]  |        YSI version 1.03.0011        | 
[21:30:42]  |        By Alex "******" Cole        | 
[21:30:42]  |                                     | 
[21:30:42]  |  Checking the latest YSI version..  | 
[21:30:42]  |                                     | 
[21:30:42]  ======================================= 
[21:31:03]  
[21:31:03]  ======================================= 
[21:31:03]  |                                     | 
[21:31:03]  |   Error: Could not connect to YSI   | 
[21:31:03]  |  update server (response was 003).  | 
[21:31:03]  |                                     | 
[21:31:03]  =======================================
You know why it can't connect?