SA-MP Forums Archive
can someone help me - 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: can someone help me (/showthread.php?tid=454399)



can someone help me - efrim123 - 28.07.2013

Can someone help me with my bug when a cop ar me i go to jail and after i am in jail and i dont have any seconds
and when i am trying to get me out as admin it shows me that i aint in jail
1.2.pwn

please solve my problem

Thank You


Re: can someone help me - efrim123 - 28.07.2013

Help Please


Re: can someone help me - efrim123 - 29.07.2013

guys i need help please get in this thread


Re : can someone help me - Matnix - 29.07.2013

Direct link wtf --', you can simply upload it at http://pastebin.com.


Re: can someone help me - efrim123 - 29.07.2013

Please help
http://pastebin.com/UKX2QGMQ


Re: can someone help me - efrim123 - 29.07.2013

Please get in this thread guys i need to fix that bug


Re: can someone help me - Alexis1999 - 29.07.2013

pawn Код:
// At the top of your code
enum jData{
    PlayerIsJailed,
}

new JailDATA[MAX_PLAYERS][jData];

// At the jail command

if(JailDATA[targetid][PlayerIsJailed] != true) // You must replace the targetid with the variable of your target
{
    JailDATA[targetid][PlayerIsJailed] = true;
    // Actions for target to go in jail
    // Put here the command to start the timer aswell
    return 1;
} else return 0;

// At the unjail command
if(JailDATA[targetid][PlayerIsJailed] == true) // You must replace the targetid with the variable of your target
{
    JailDATA[targetid][PlayerIsJailed] = false;
    // Actions for target to unjail him
    // Put here the command to start the timer aswell
    return 1;
} else return 0;
Also you might wanna download Y_Ini to save in the character file . Have a look here to learn how to do it
https://sampforum.blast.hk/showthread.php?tid=175565