Good jailcommand in ZCMD?
#1

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

You can easily convert your strcmp cmd to zcmd.
Reply
#3

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;
}
Reply
#4

Hello? Anybody?
Reply
#5

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
Reply
#6

But I needed the co-ordinates for jailposition!
Reply
#7

Help me guys! Please
Reply
#8

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

But I dunno where the jail in LS is...
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)