02.11.2012, 18:56
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
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[])
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;
}
The command is scripted at the bottom.
Line : COMMAND:cell(playerid, params[])