PLEASE HELP? - 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: PLEASE HELP? (
/showthread.php?tid=196558)
PLEASE HELP? Classes!! -
BigAl - 05.12.2010
Please help. I have these lines under:
Callback:
Код:
public OnPlayerRequestClass(playerid, classid)
This is what i have:
Код:
if(classid == 0)
{
GameTextForPlayer(playerid, "~r~ Area 69!", 3000, 1);
}
if(classid == 1)
{
GameTextForPlayer(playerid, "~r~ Abandoned airport!", 3000, 1);
}
When i click the one with area 60 it works fine and spawns me there. That is not my problem but my problem is: When i switch between class 1 and class 2 the text stays the same unless you wait for it to go. For example:
"Im on class 1. It says Area 69. i switch to Class 2 and it still says area 69. I switch back to Class 1 and it still says area 69. I wait 10-20 secs and area 69 dissappears. I then switch to Class 2 and it says Abandoned airport" How can i make it so when i switch between classes it swaps the GameTextForPlayer Instantly?
Re: PLEASE HELP? -
BigAl - 05.12.2010
BUMP!!! Please help me

? :/
Re: PLEASE HELP? -
fangoth1 - 05.12.2010
i think i got it
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid, "~r~ Area 69!", 3000, 1);
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "~r~ Abandoned airport!", 3000, 1);
}
return 1;
}
Re: PLEASE HELP? -
BigAl - 05.12.2010
Quote:
Originally Posted by fangoth1
i think i got it
pawn Код:
if(classid == 0) { GameTextForPlayer(playerid, "~r~ Area 69!", 3000, 1); }
else if(classid == 1) { GameTextForPlayer(playerid, "~r~ Abandoned airport!", 3000, 1); } return 1; }
|
Already tried that. It doesn't work.
Re: PLEASE HELP? -
fangoth1 - 05.12.2010
hmm, i wonder
Re: PLEASE HELP? - rjjj - 05.12.2010
Sometimes many
if symbols gives me errors '-'
When it happens, i use one
if in the begining and
else if after, try this:
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid, "~r~ Area 69!", 3000, 1);
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "~r~ Abandoned airport!", 3000, 1);
}
I hope i have helped
Re: PLEASE HELP? -
fangoth1 - 05.12.2010
did you define the Class id there on?
Re: PLEASE HELP? -
BigAl - 05.12.2010
Like i said, i have tried that and it doesn't work and it is not errors i get. Read the post