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) |
//
enum OInfo
//
enum OInfo
{
ModelID,
ObjectID[MAX_PLAYERS],
Float:ox,
Float:oy,
Float:oz,
Float:orx,
Float:ory,
Float:orz,
Float:ovdist,
bool:ObjectCreated[MAX_PLAYERS],
}
//
tempo = strtok(cmdtext, idx);
//
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;
}
//
if(!strlen(tempo))
/*
Mesma coisa
do outro
error , o
code comple-
to '-'*\
Linha do erro :
pawn Код:
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]
};
Tenta
pawn Код:
EDIT: Se nгo der, poste o que tem em cima da enum! |
new pban[MAX_PLAYERS];
new v[6];
new shifthour;
new cdivulgar[MAX_PLAYERS];
//================================================//
new tempo
//==============[STREAMER DE OBJETOS]=============//
/*
native Thiago_CreateObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:vdist=0.0); //creates an object.
native Thiago_DestroyObject(objectid); //destroys an object.
native Thiago_PlayerObjectUpdate(playerid, Float:x, Float:y, Float:z); //update objects for a player in a certain position.
native Thiago_MoveObject(objectid, Float:x, Float:y, Float:z, Float:speed); //moves an object.
native Thiago_StopObject(objectid); //stops an object from moving.
native Thiago_IsValidObject(objectid); //returns 1 if object is valid, returns 0 if object is invalid.
native Thiago_SetObjectPos(objectid, Float:x, Float:y, Float:z); //sets the position of an object.
native Thiago_GetObjectPos(objectid, &Float:x, &Float:y, &Float:z); //gets the position of an object in x, y and z.
native Thiago_SetObjectRot(objectid, Float:rx, Float:ry, Float:rz); //sets the rotation of an object.
native Thiago_GetObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz); //gets the rotation of an object in rx, ry and rz.
native Thiago_RefreshObjects(playerid); //recreates (refreshes) a certain player's objects. (useful to recreate broken objects like glass, boxes, barrels, ...)
native Thiago_ObjectUpdateForAll(); //instantly updates the objects for all players.
*/
//Configuration//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//the player's object view range, doesn't need to be changed because objects only start showing at 350 distance.
//#pragma dynamic 30000 //increse value if you have problems with stach/heap size.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
enum OInfo
enum OInfo
{
ModelID,
ObjectID[MAX_PLAYERS],
Float:ox,
Float:oy,
Float:oz,
Float:orx,
Float:ory,
Float:orz,
Float:ovdist,
bool:ObjectCreated[MAX_PLAYERS]
};
new tempo[128];