Text help [rep]
#1

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
Reply
#2

Delete the return at line 71001
Reply
#3

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!
Reply
#4

ma ajuta cineva??
Reply
#5

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..
Reply
#6

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;
}
Reply
#7

each player can see the chat at any distance....thats not normal...even if im in LS and hes SF.LV
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)