SA-MP Forums Archive
Offline Prison Problem (++rep) - 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: Offline Prison Problem (++rep) (/showthread.php?tid=523698)



Offline Prison Problem (++rep) [SOLVED] - ScripteRMKD - 03.07.2014

fixed


Re: Offline Prison Problem (++rep) - Beckett - 03.07.2014

Then don't detect for the ID only name (string).

pawn Код:
if(sscanf(params,"si",name,prisontime)) return // ur msg here



Re: Offline Prison Problem (++rep) - ScripteRMKD - 03.07.2014

fixed


Re: Offline Prison Problem (++rep) - Beckett - 03.07.2014

Because you didn't understand what I said.

igrac - STANDS FOR PLAYER ID.
You made it as a string. So you're detecting a string as a playerid. I will send you a code in a bit.


Re : Offline Prison Problem (++rep) - Clad - 03.07.2014

Try to do it by yourself and if you have issue we help you, You never stop asking.


Re: Offline Prison Problem (++rep) - ScripteRMKD - 03.07.2014

@Clad i try to fix and i dont need spam by you please dont spam again if you dont want to help btw @DaniceMcHarley when i make new igrac[120]; he give's me a errors ?


Re: Offline Prison Problem (++rep) - ScripteRMKD - 03.07.2014

help please


Re: Offline Prison Problem (++rep) - Max5 - 03.07.2014

Use this:

pawn Код:
if(sscanf(params, "s[24]ds[64]", name, minutes, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /prison [playername] [time (minutes)] [reason]");

        new giveplayerid = ReturnUser(name);
instead of:

pawn Код:
if(sscanf(params, "uis[128]", igrac, vreme, pricina)) return SendClientMessage(playerid, COLOR_WHITE, "{00C0FF}[INFO]{FFFFFF} /prison [Ime na Igrac] [Vreme(Casovi) [Pricina]");

new igrac, vreme, string[128], file[32], pricina[128];



Re: Offline Prison Problem (++rep) - ScripteRMKD - 03.07.2014

fixed


Respuesta: Offline Prison Problem (++rep) - Shura - 03.07.2014

I recommend using Y_INI bro