Need 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)
+--- Thread: Need Help (
/showthread.php?tid=581733)
Need Help -
MaxJohnson - 15.07.2015
hello friends please help me in this i have made textdraws items menu i have made 14 items 1 to refill health 2 to refill armour 3 to get weapons but problem is it only works for 9 texts i want to make it 14 but when i type 14 in this code it giving me error on compiling it here is the code
Quote:
if(text[0] == '1' && Textdraw[playerid] == 0)
{
if(CPS_IsPlayerInCheckpoint(playerid, cpcoprefill))
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(playerid,0x20B2AAAA,"Your Health Has Been Refilled");
return false;
}
}
|
if(text[0] == 'here if i am putting 9 it compiles fine but when i put 10 it gives me error' && Textdraw[playerid] == 0)
Re: Need Help -
mamorunl - 15.07.2015
That is because you are only checking one char. text[0] cannot contain two items