27.02.2011, 11:49
galera me ajudem com esses warings:
Linhas dos warings:
outra duvida que eu tenho й como eu crio um comando /respawn que mande os veiculos desocupados para o local de origem deles, eu criei este comando:
porem quando eu digito /respawn todos os carros voltam para o local de origem inclusive aqueles que tem alguem dentro. Ajudem ai pf
des de ja obrigado
pawn Код:
warning 213: tag mismatch
warning 202: number of arguments does not match definition
pawn Код:
//
new textocasas[6][50];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
//new textocasas[5][50];
pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
//textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.4,10.0,0,1);
format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.5,10.0,0,1);
format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.6,10.0,0,1);
textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.7,20.0,0);
}
}
pawn Код:
//
if(strcmp(cmd, "/respawn", true) == 0)
{
//new carrosalvo[2000] = 0;
if(PlayerInfo[playerid][pAdmin] >= 1)
{
for(new i=0;i<MAX_VEHICLES;i++)
{
/*if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
Gas[i] = 100;
}*/
for(new a = 0; a <= MAX_PLAYERS; a++)
{
if(!IsPlayerInVehicle(a,i))
{
SetVehicleToRespawn(i);
Gas[i] = 100;
}
}
}
SendClientMessageToAll(0xDEEE20FF, "Respawn!");
return 1;
}
else
{
SendClientMessage(playerid,0xDEEE20FF,"Vocк nгo й um administrador.");
}
return 1;
}
des de ja obrigado