17.05.2009, 20:30
I can't figure it out the "why" can somebody help me?
Код:
C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(204) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(207) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(211) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(212) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(215) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(217) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(219) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(226) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(231) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(236) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(241) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(245) : error 010: invalid function or declaration C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(317) : warning 203: symbol is never used: "Jailed" C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\ROLE-P~1.PWN(317) : warning 203: symbol is never used: "Wanted" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors.
pawn Код:
#define TEAM_COPS 2
new gTeam[MAX_PLAYERS];
new Jailed[MAX_PLAYERS];
new Wanted[MAX_PLAYERS];
if(strcmp(cmd, "/arrest", true) == 0)
{
{
if(gTeam[playerid] != TEAM_COPS) return SendClientMessage(playerid, 0xFF0000AA, "-> You are not a Police Officer.");
}
new id;
tmp = strtok(cmdtext, index);
if (strlen(tmp))
{
id = strval(tmp);
if (IsPlayerConnected(id))
{
if (Jailed[id] = 1)
{
if (Wanted[id] = 1)
{
SetPlayerPos(id, 1958.3783, 1343.1572, 15.3746);
SendClientMessage(id, 0x00FF00AA, "-> You have been jailed for 120 seconds, YOU CRIMINAL!");
Jailed[id] = 0;
SendClientMessage(playerid, 0x00FF00AA, "-> Player Jailed, Keep the Good work officer!");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "-> The Player isn't Wanted.");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "-> The Player is already jailed.");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "-> Player not found.");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "-> You mean: /arrest [PlayerID]");
}
return 1;
}
Код:
Line 205: if(strcmp(cmd, "/arrest", true) == 0) Line 208: if(gTeam[playerid] != TEAM_COPS) return SendClientMessage(playerid, 0xFF0000AA, "-> You are not a Police Officer."); Line 212: tmp = strtok(cmdtext, index); Line 213: if (strlen(tmp)) Line 216: if (IsPlayerConnected(id)) Line 218: if (Jailed[id] = 1) Line 220: if (Wanted[id] = 1) Line 227: else Line 232: else Line 237: else Line 242: else Line 246: return 1; Line 318: SCRIPT END AND 317, Jailed and wanted are two of my variables.