01.11.2011, 15:06
Quote:
G:\VirtualstreeT.pwn(123) : error 001: expected token: ";", but found "enum" G:\VirtualstreeT.pwn(29839) : error 006: must be assigned to an array G:\VirtualstreeT.pwn(29845) : error 035: argument type mismatch (argument 1) |
pawn Код:
//
enum OInfo
pawn Код:
//
enum OInfo
{
ModelID,
ObjectID[MAX_PLAYERS],
Float:ox,
Float:oy,
Float:oz,
Float:orx,
Float:ory,
Float:orz,
Float:ovdist,
bool:ObjectCreated[MAX_PLAYERS],
}
Linha do erro :
pawn Код:
//
tempo = strtok(cmdtext, idx);
pawn Код:
//
if(strcmp(cmd, "/cadeia", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
tempo = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
return 1;
}
if(!strlen(tempo))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
return 1;
}
if(PlayerInfo[giveplayerid][pAdmin] >= 1339 && PlayerInfo[playerid][pAdmin] < 1338)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar carandiru para um Admin Dono !");
return 1;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Voce prendeu %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Voce foi preso pelo Admin %s.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
// WantedPoints[playa] = 0;
PlayerInfo[playa][pJailed] = 1;
PlayerInfo[playa][pJailTime] = money*60;
SetPlayerInterior(playa, 6);
SetPlayerPos(playa, 1172.9497070313,-1179.8718261719,86.65015411377);
format(string, sizeof(string), "Voce foi preso por %d minutos. Fianca: Desabilitada", money);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao tem permissao para usar esse comando!");
}
}
return 1;
}
Linha do erro :
pawn Код:
//
if(!strlen(tempo))
pawn Код:
/*
Mesma coisa
do outro
error , o
code comple-
to '-'*\