Offline Prison Problem (++rep)
#1

fixed
Reply
#2

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

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

fixed
Reply
#4

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.
Reply
#5

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

@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 ?
Reply
#7

help please
Reply
#8

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];
Reply
#9

fixed
Reply
#10

I recommend using Y_INI bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)