Problem with a peace of code. - 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: Problem with a peace of code. (
/showthread.php?tid=388415)
Problem with a piece of code. -
andrew2695 - 28.10.2012
Hi, I know this code is wrong but you probably understand what I'm trying to do. Do you have any Idea how I can get this code to work?
pawn Код:
switch(InJail[id])
{
case 0: IsInJail = "No";
case 1: IsInJail = "Yes for %i seconds", Info[id][TimeInJail];
}
Re: Problem with a peace of code. -
ryansheilds - 28.10.2012
Be more clear, I don't have a clue what the problem is. What are you trying to do & what's the problem?
Are you trying to send it:
pawn Код:
new string[128];
format(string, sizeof(string), "Jail: %s", IsInJail);
SendClientMessage(id, -1, string);