SA-MP Forums Archive
Good jailcommand in ZCMD? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Good jailcommand in ZCMD? (/showthread.php?tid=274142)



Good jailcommand in ZCMD? - samtey - 04.08.2011

Hi! I made a jail command in strcmp, but I am using ZCMD, so strcmp got disabled! Do u have one for me, pls?


Re: Good jailcommand in ZCMD? - MadeMan - 04.08.2011

You can easily convert your strcmp cmd to zcmd.


AW: Good jailcommand in ZCMD? - samtey - 04.08.2011

True, but I got some errors!

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(94) : error 017: undefined symbol "x"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(95) : error 017: undefined symbol "JailTimer"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(95) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(95) : error 001: expected token: ";", but found "]"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(95) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(95) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Also, can anybody gimme jail-co-ordinates?

pawn Код:
CMD:jail(playerid, params[])
{
        new id, mins, str[128];
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xffffffff, "You're not Admin!");
         if(sscanf(params, "ud", id, mins)) return SendClientMessage(playerid, 0xffffffff, "[Usage]: /jail <id> <minutes>");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xffffffff, "Invalid player id.");
        SetPlayerPos(id, x, y, z);        //ERROR, NEED JAILPOS  
        JailTimer[id] = SetTimerEx("Unjail", mins*60*1000, 0, "d", id); //ERROR
        format(str, sizeof(str), "You jailed %s for %d mins.", GetName(id), mins);
        SendClientMessage(playerid, 0xffffffff, str);
        format(str, sizeof(str), "%s jailed you for %d mins.", GetName(playerid), mins);
        SendClientMessage(id, 0xffffffff, str);
        return 1;
}



AW: Good jailcommand in ZCMD? - samtey - 04.08.2011

Hello? Anybody?


Re: Good jailcommand in ZCMD? - LZLo - 04.08.2011

PHP код:
new tmp[256]; 
tmp  strtok(params,Index);
id strval(tmp); 
and

PHP код:
new tmp2[256]; tmp2 strtok(params,Index);
new 
mins strval(tmp2); 

maybe



AW: Good jailcommand in ZCMD? - samtey - 04.08.2011

But I needed the co-ordinates for jailposition!


AW: Good jailcommand in ZCMD? - samtey - 04.08.2011

Help me guys! Please


Re: Good jailcommand in ZCMD? - =WoR=Varth - 05.08.2011

do /save in game, and open samp folder inside "My Document".


AW: Good jailcommand in ZCMD? - samtey - 05.08.2011

But I dunno where the jail in LS is...


Re: Good jailcommand in ZCMD? - LZLo - 05.08.2011

it's in here: https://sampwiki.blast.hk/wiki/Interiors