this wont work - 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: this wont work (
/showthread.php?tid=107901)
this wont work -
[HKS]dlegend - 11.11.2009
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;
}
Re: this wont work -
LarzI - 11.11.2009
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
Re: this wont work -
[HKS]dlegend - 11.11.2009
no luck i have given up with 3a sucks ass atm gone back to 2x thanks for the help man
Re: this wont work -
[HKS]dlegend - 11.11.2009
no i tried that and it still dont work thanks though (this is not a bumb)