Message not showing? - 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: Message not showing? (
/showthread.php?tid=126325)
Message not showing? -
Torran - 07.02.2010
I have this code:
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
{
SendClientMessage(playerid,0xFF8040FF,"BOT: Welcome to Torrans Roleplay server");
SendClientMessage(playerid,0xFF0000FF,"BOT: Your username is recgonized, Please /login to continue");
}
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
return 1;
}
But if i go ingame, And im registered, That message dosent show, Why?
Re: Message not showing? -
Kanji_Suzuki - 07.02.2010
try
Код:
if(strlen(gPlayerInfo[playerid][PLAYER_REGGED]) == 1)
Note: i did not test
Re: Message not showing? -
Correlli - 07.02.2010
Quote:
Originally Posted by Torran
But if i go ingame, And im registered, That message dosent show, Why?
|
It's obvious that
gPlayerInfo[playerid][PLAYER_REGGED] isn't equal to 1.
Re: Message not showing? -
Torran - 07.02.2010
You were right its not:
And this is the problem:
http://forum.sa-mp.com/index.php?topic=151545.0
Anyone help? Its not saving when i register