ZCMD not working.
#1

C:\Users\Cristian\Downloads\samp03e_svr_R2_win32\p awno\swag.pwn(2292) : error 029: invalid expression, assumed zero
C:\Users\Cristian\Downloads\samp03e_svr_R2_win32\p awno\swag.pwn(2292) : error 017: undefined symbol "cmd_cell"
C:\Users\Cristian\Downloads\samp03e_svr_R2_win32\p awno\swag.pwn(2292) : error 029: invalid expression, assumed zero
C:\Users\Cristian\Downloads\samp03e_svr_R2_win32\p awno\swag.pwn(2292) : fatal error 107: too many error messages on one line


pawn Код:
COMMAND:cell(playerid, params[])
    {
    if(PlayerData[playerid][LSPDRank] < 2)
    {
    new
    targetid, // the player we want to give money t
    name[MAX_PLAYER_NAME],
    othername[MAX_PLAYER_NAME],
    time;
    if (!sscanf(params, "ii", params))
    {
    if (targetid != INVALID_PLAYER_ID)
    {
    if(PlayerData[playerid][Duty] >= 2)
    {
    new
    message[128], info[128];
    SetPlayerPos(targetid, 264.6347,86.6351,1001.0391);
    SetPlayerInterior(targetid, 6);
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerName(targetid, othername, sizeof(othername));
    format(message, sizeof(message), "[LSPD] Police Cadet %s has jailed %s for #d minutes.", name, othername, time);
    SendClientMessageToAll(GRAY, message);
    format(info, sizeof(info), "[LSPD] Your weapons and items have been taken away by Police Cadet %s", name);
    SendClientMessage(targetid, GRAY, info);
    }
    else SendClientMessage(playerid, GRAY, "You're not on police duty !");
    }
    else SendClientMessage(playerid, GRAY, "This player is not connected !");
    }
    else SendClientMessage(playerid, GRAY, "Function : /cell [ id ] [ minutes ] !");
    }
    else SendClientMessage(playerid, GRAY, "You must be an Academy Cadet / Agent In Training or higher to use this command !");
    return 1;
    }
Can someone tell me what's wrong ? I installed sscanf version 2.6 and ZCMD and included it at top of the script.

The command is scripted at the bottom.

Line : COMMAND:cell(playerid, params[])
Reply


Messages In This Thread
ZCMD not working. - by stix - 02.11.2012, 18:56
Re: ZCMD not working. - by RedJohn - 02.11.2012, 19:11
Re: ZCMD not working. - by tyler12 - 02.11.2012, 19:12
Respuesta: ZCMD not working. - by stix - 02.11.2012, 19:45
Re: ZCMD not working. - by tyler12 - 02.11.2012, 19:51
Re: ZCMD not working. - by ViniBorn - 02.11.2012, 20:34

Forum Jump:


Users browsing this thread: 2 Guest(s)