public lol(playerid)
{
for (new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[playerid][Logged] == 0)
{
if(IsPlayerInPlace(i, 987.8362, -1382.3101, 1029.6898, -1340.4981))
{
//funcoes
}
else
{
//funcoes
}
else if(IsPlayerInPlace(i, 1543.105, -1160.76, 1847.332, -979.1639))
{
//funcoes
}
else
{
//funcoes
}
else if(IsPlayerInPlace(i, 838.0192, -560.1873, 879.4967, -617.2527))
{
//funcoes
}
else
{
//funcoes
}
}
}
return 1;
}
(30316) : error 029: invalid expression, assumed zero (30316) : warning 215: expression has no effect (30316) : error 001: expected token: ";", but found "if" (30327) : error 029: invalid expression, assumed zero (30327) : warning 215: expression has no effect (30327) : error 001: expected token: ";", but found "if"
public locaisprofs(playerid)
{
for (new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[playerid][Logged] == 0)
{
if(IsPlayerInPlace(i, 987.8362, -1382.3101, 1029.6898, -1340.4981))
{
new var0[128];
format(var0,sizeof(var0),"~b~Area de Carga ~g~(~y~Motoboys~g~) ~g~/~p~p~r~Mercadoria");
TextDrawSetString(texca[i], var0);
TextDrawShowForPlayer(i, texca[i]);
}
else
{
TextDrawHideForPlayer(i, texca[i]);
}
else if(IsPlayerInPlace(i, 1543.105, -1160.76, 1847.332, -979.1639))
{
new var1[128];
format(var1,sizeof(var1),"~b~Area de Carga ~g~(~y~Caminhoneiros~g~) ~g~/~r~carregar");
TextDrawSetString(texca1[i], var1);
TextDrawShowForPlayer(i, texca1[i]);
}
else
{
TextDrawHideForPlayer(i, texca1[i]);
}
else if(IsPlayerInPlace(i, 838.0192, -560.1873, 879.4967, -617.2527))
{
new Celulite[256];
format(Celulite,sizeof(Celulite),"~b~Area dos ~g~(~y~Mecanicos~g~)");
TextDrawSetString(texca2[i], Celulite);
TextDrawShowForPlayer(i, texca2[i]);
}
else
{
TextDrawHideForPlayer(i, texca2[i]);
}
}
}
return 1;
}
public locaisprofs(playerid)
{
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][Logged] == 0)
{
if(IsPlayerInPlace(i, 987.8362, -1382.3101, 1029.6898, -1340.4981))
{
new var0[128];
format(var0,sizeof(var0),"~b~Area de Carga ~g~(~y~Motoboys~g~) ~g~/~p~p~r~Mercadoria");
TextDrawSetString(texca[i], var0);
TextDrawShowForPlayer(i, texca[i]);
}
else
{
TextDrawHideForPlayer(i, texca[i]);
}
else if(IsPlayerInPlace(i, 1543.105, -1160.76, 1847.332, -979.1639))
{
new var1[128];
format(var1,sizeof(var1),"~b~Area de Carga ~g~(~y~Caminhoneiros~g~) ~g~/~r~carregar");
TextDrawSetString(texca1[i], var1);
TextDrawShowForPlayer(i, texca1[i]);
}
else
{
TextDrawHideForPlayer(i, texca1[i]);
}
else if(IsPlayerInPlace(i, 838.0192, -560.1873, 879.4967, -617.2527))
{
new Celulite[256];
format(Celulite,sizeof(Celulite),"~b~Area dos ~g~(~y~Mecanicos~g~)");
TextDrawSetString(texca2[i], Celulite);
TextDrawShowForPlayer(i, texca2[i]);
}
else
{
TextDrawHideForPlayer(i, texca2[i]);
}
}
}
}
return 1;
}
pawn Код:
|
(30331) : error 029: invalid expression, assumed zero (30331) : warning 215: expression has no effect (30331) : error 001: expected token: ";", but found "if" (30342) : error 029: invalid expression, assumed zero (30342) : warning 215: expression has no effect (30342) : error 001: expected token: ";", but found "if"
public locaisprofs(playerid)
{
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][Logged] == 0)
{
if(IsPlayerInPlace(i, 987.8362, -1382.3101, 1029.6898, -1340.4981))
{
new var0[128];
format(var0,sizeof(var0),"~b~Area de Carga ~g~(~y~Motoboys~g~) ~g~/~p~p~r~Mercadoria");
TextDrawSetString(texca[i], var0);
TextDrawShowForPlayer(i, texca[i]);
}
else
{
TextDrawHideForPlayer(i, texca[i]);
}
if(IsPlayerInPlace(i, 1543.105, -1160.76, 1847.332, -979.1639))
{
new var1[128];
format(var1,sizeof(var1),"~b~Area de Carga ~g~(~y~Caminhoneiros~g~) ~g~/~r~carregar");
TextDrawSetString(texca1[i], var1);
TextDrawShowForPlayer(i, texca1[i]);
}
else
{
TextDrawHideForPlayer(i, texca1[i]);
}
if(IsPlayerInPlace(i, 838.0192, -560.1873, 879.4967, -617.2527))
{
new Celulite[256];
format(Celulite,sizeof(Celulite),"~b~Area dos ~g~(~y~Mecanicos~g~)");
TextDrawSetString(texca2[i], Celulite);
TextDrawShowForPlayer(i, texca2[i]);
}
else
{
TextDrawHideForPlayer(i, texca2[i]);
}
}
}
}
return 1;
}
if(IsPlayerInPlace(i, 838.0192, -560.1873, 879.4967, -617.2527))
{
new Celulite[256];
format(Celulite,sizeof(Celulite),"~b~Area dos ~g~(~y~Mecanicos~g~)");
TextDrawSetString(texca2[i], Celulite);
TextDrawShowForPlayer(i, texca2[i]);
}
else
{
TextDrawHideForPlayer(i, texca2[i]);
}
compilou mas...
pawn Код:
|