Something is probably wrong!
#1

Hello I Hawe Problem!

Problem Is Gamesay To All

If I Write Me Chat

/x-gamesay0 ~g~Hello >-explanation: /x-gamesay is command, 0 -is style, ~g~-is color, ang text is that text what i write like that
/x-gamesay0 ~g~You

However, the problem is that when I write something it should be chatting to the fact that the word for yo

here is some picture to:

that i write to chat


That is screen text to all


Command code here
Код:
	else if (strcmp(cmd, "/x-gamesay0", true)==0 && IsPlayerAdminblддplдд(playerid)) {
		new tmp2[256];
		strmid(tmp2,cmdtext,9,strlen(cmdtext));
		format(string2, sizeof(string2), "~w~%s", tmp2);
		GameTextForAll(string2, 5000, 0);
		return 1;
	}
sry my bad english

I hope that you understand my question!
Reply
#2

need help
Reply
#3

are you saying you dont want that "yo"?
Reply
#4

Quote:
Originally Posted by happyface
are you saying you dont want that "yo"?
jes if i write /gamesay0 ~g~you onli you not /gamseay0 ~g~yo you
Reply
#5

Quote:
Originally Posted by BLACK-RIDER-1692
Quote:
Originally Posted by happyface
are you saying you dont want that "yo"?
jes if i write /gamesay0 ~g~you onli you not /gamseay0 ~g~yo you
i might be mistaken, but perhaps since you haven't made a new string, its carrying over from somewhere else, try just adding right under new tmp2[256];

pawn Код:
new string2[128]; // not sure what the max is for gametextforall
ive never used strmid before, but that 9 is also catching my eye, maybe that yo is y0, which if this is the case, make that 9 an 11, so it puts your new string after the command.

Reply
#6

same
Reply
#7

Quote:
Originally Posted by BLACK-RIDER-1692
same
even after changing the 9?
Reply
#8

jeah
Reply
#9

why use strmid for this? Try it with cmdtext[11] and see if it still happens (please? :P )
Reply
#10

not work
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)