Text help [rep] - 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: Text help [rep] (
/showthread.php?tid=314802)
Text help [rep] -
Dan_Barocu - 31.01.2012
if i put this i get 1 warning..
Код:
}
return 0;
} //diffrent cmd
return 0;
}
#pragma tabsize 0
new a[MAX_PLAYER_NAME];
GetPlayerName(playerid,a,MAX_PLAYER_NAME);
format(text,128,"{247BFF}%s spune: {FF3F0F}%s",a,text);
SendClientMessageToAll(0xFFFFFFAA,text);
return 0;
}
(71003) if(MarriageCeremoney[playerid] > 0) //diffrecnt cmd
{
new idx;
tmp = strtok(text, idx);
if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
{
if the player logins his name on the TAB and game will appear in grey color...i have nothing in gray color..
and the whole server can see the message..please help
Код:
(71003) : warning 225: unreachable code
Re: Text help [rep] -
thimo - 31.01.2012
Delete the return at line 71001
Re: Text help [rep] -
Dan_Barocu - 31.01.2012
warning rezolved!!1. if a player logins then his name will appear in grey color....even for admins.. .
2.each player on the server can see the chat...everyone plaease help im giving REP!
Re: Text help [rep] -
Dan_Barocu - 31.01.2012
ma ajuta cineva??
Re: Text help [rep] -
Dan_Barocu - 31.01.2012
try this cmd
#pragma tabsize 0
new a[MAX_PLAYER_NAME];
GetPlayerName(playerid,a,MAX_PLAYER_NAME);
format(text,128,"{247BFF}%s spune: {FF3F0F}%s",a,text);
SendClientMessageToAll(0xFFFFFFAA,text);
}
please try it. and youl see it doesent work..
Re: Text help [rep] -
arjanforgames - 31.01.2012
If you talk everybody can see the chat automaticly :/
And about the grey color:
Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, <HERE YOUR COLOR ID>);
return 1;
}
Re: Text help [rep] -
Dan_Barocu - 31.01.2012
each player can see the chat at any distance....thats not normal...even if im in LS and hes SF.LV