09.01.2012, 16:39
To com um probleminha aqui galera :S
Heelp ??
AQUI TA TUDO OK, APARENTEMENTE :S
AONDE O PROBLEMA SE ENCONTRA:
Problemas:
Nao conssigo entender o motivo do Underfined Symbol ja que eu defini lб em cima new CarroGroove e CarroCops :S
Como posso resolver isso ?
Heelp ??
pawn Код:
new CarroGroove[11];
//10 Carros aqui
new CarroCops[11];
//10 Carros aqui
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (ReservedCar(vehicleid)
)
if(Gang[playerid] == GROOVE)
{
SendClientMessage(playerid, SERVER_INFO, "Ok vocк pertence a este time (Groove Street)");
}
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, SERVER_INFO, "Vocк nao pertence a este time");
SendClientMessage(playerid, SERVER_INFO, "Use: ( /meutime ) caso queira trocar.");
if(Gang[playerid] == COPS)
{
SendClientMessage(playerid, SERVER_INFO, "Ok vocк pertence a este time (COPS)");
}
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, SERVER_INFO, "Vocк nao pertence a este time");
SendClientMessage(playerid, SERVER_INFO, "Use: ( /meutime ) caso queira trocar.");
return 0;
}
pawn Код:
forward ReservedCar(carid);
public ReservedCar(carid)
{
if(CarroGroove); // 442
{
return 1;
}
if(CarroCops); // 446
{
return 1;
}
return 0; // 450
}
Код:
D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : error: 017: undefined symbol "CarroGroove" D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : error: 036: empty statement D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : warning: 225: unreachable code D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : error: 017: undefined symbol "CarroCops" D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : error: 036: empty statement D:\JOGOS\GTA San Andreas\Server SAMP\gamemodes\teste.pwn(446) : warning: 225: unreachable code
Como posso resolver isso ?