this wont work
#1

for some reason this wont work i updated to samp 3a and it stoped work any ideas thanks
Код:
    if(text[0] == '!')
	{
		if(playerGang[playerid] > 0)
		{
		  new gangChat[90];
		  new senderName[MAX_PLAYER_NAME];
		  for(new i = 1; i < strlen(text)+1; i++)
			gangChat[i]=text[i];

			strmid(gangChat,text,1,strlen(text));
      new string[128];
			GetPlayerName(playerid, senderName, sizeof(senderName));
			format(string, sizeof(string),"%s: %s", senderName, gangChat);

			for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++) {
			SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_LIGHTBLUE, string);
			}
  	}

		return 1;
	}
Reply
#2

pawn Код:
if(text[0] == '!')
{
    if(playerGang[playerid] > 0)
    {
        new senderName[MAX_PLAYER_NAME];
        new string[128];
        GetPlayerName(playerid, senderName, sizeof(senderName));
        format(string, sizeof(string),"%s: %s", senderName, text[1]);

        for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++)
            SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_LIGHTBLUE, string);
    }
    return 1;
}
Try that one
Reply
#3

no luck i have given up with 3a sucks ass atm gone back to 2x thanks for the help man
Reply
#4

no i tried that and it still dont work thanks though (this is not a bumb)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)