SA-MP Forums Archive
Something is probably wrong! - 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: Something is probably wrong! (/showthread.php?tid=85994)



Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

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!



Re: Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

need help


Re: Something is probably wrong! - happyface - 11.07.2009

are you saying you dont want that "yo"?


Re: Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

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


Re: Something is probably wrong! - happyface - 11.07.2009

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.




Re: Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

same



Re: Something is probably wrong! - happyface - 11.07.2009

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


Re: Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

jeah



Re: Something is probably wrong! - mamorunl - 11.07.2009

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


Re: Something is probably wrong! - BLACK-RIDER-1692 - 11.07.2009

not work