[HELP] OnPlayerText - 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: [HELP] OnPlayerText (
/showthread.php?tid=78375)
[HELP] OnPlayerText -
Littleman774 - 19.05.2009
Hello there!
I'm trying to put a text that shows up at every signgle skin in the skin selection...
Example, I have a Grove Gang, there I want a text like "Grove Street", then when I switch to antother skin I want a text like "The ballas"... you know what I mean?
I'm setting texts up because some skins are only for admins or gang leaders...
Thanks for the help!
Re: [HELP] OnPlayerText -
Joe Staff - 19.05.2009
OnPlayerClassSelection
Switch(classid)
{
case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");
....
case 256: yada yada
}
Re: [HELP] OnPlayerText -
MenaceX^ - 19.05.2009
Do you mean like;
If I have 1/3 of the ballas skin, my chat is purple?
Re: [HELP] OnPlayerText -
Littleman774 - 19.05.2009
Quote:
|
Originally Posted by MenaceX^
Do you mean like;
If I have 1/3 of the ballas skin, my chat is purple?
|
I just want a normal white text to show up when I see that skin
Re: [HELP] OnPlayerText -
SpiderPork - 19.05.2009
Then use what SilentHuntR posted.
Re: [HELP] OnPlayerText -
Littleman774 - 19.05.2009
Quote:
|
Originally Posted by SilentHuntR
OnPlayerClassSelection
Switch(classid)
{
case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");
....
case 256: yada yada
}
|
I just get this errors:
The "switch(classid)" = invalid function or declaration
The "case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");" = invalid function or declaration
The "case 256: yada yada" = invalid function or declaration
Re: [HELP] OnPlayerText -
Joe Staff - 19.05.2009
... That was an example, you weren't meant to copy it word for word.... dumby
Re: [HELP] OnPlayerText -
Littleman774 - 19.05.2009
Quote:
|
Originally Posted by SilentHuntR
... That was an example, you weren't meant to copy it word for word.... dumby
|
I know it was an example lol
This is the script I maked:
Код:
OnPlayerClassSelection(classid)
{
case 0: GameTextForPlayer(playerid,0,"Testing text");
case 1: GameTextForPlayer(playerid,1,"Testing text");
}
But no text showed up
Re: [HELP] OnPlayerText -
Littleman774 - 19.05.2009
And it also gave me a warning:
symbol is never used: "OnPlayerClassSelection"
Re: [HELP] OnPlayerText -
SpiderPork - 19.05.2009
use
public OnPlayerClassSelection(blah)
Then put a switch, and
THEN use case 0:, case 1: