Help please - 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)
+--- Thread: Help please (
/showthread.php?tid=300234)
Help please -
bartje01 - 29.11.2011
Hey guys. I want to make that if I fill in the nummer this number will get in the g_Class variable. It doesn't work though.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text,"1") || !strcmp(text,"2") || !strcmp(text,"3") || !strcmp(text,"4") )
{
if(Bit16_Get(g_ClassChoose, playerid) == 1)
{
TextDrawHideForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid,Textdraw1);
TextDrawHideForPlayer(playerid,Textdraw2);
TextDrawHideForPlayer(playerid,Textdraw3);
TextDrawHideForPlayer(playerid,Textdraw4);
TextDrawHideForPlayer(playerid,Textdraw5);
TextDrawHideForPlayer(playerid,Textdraw6);
Bit16_Set(g_Class,playerid,text[0]);
}
}
return 1;
}
pawn Код:
COMMAND:check(playerid,params[])
{
format(String,sizeof(String),"Class:%d",Bit16_Get(g_Class, playerid));
SendClientMessage(playerid,-1,String);
return 1;
}
If I type /check it keeps saying Class:0
Re: Help please -
bartje01 - 29.11.2011
does anyone not know what I mean>