24.04.2018, 22:18
Seguinte, quero colocar alguns veнculos no mapa que sу admins possam usar. Fiz isso que vi em um outro post sobre a mesma coisa que o maninho queria, sу que tб dando erro e eu nгo manjo muito de pawno, nгo entendi o erro..
Esses sгo os cуdigos:
O erro que dб й esse:
As linhas em questгo:
26711
26713
Esses sгo os cуdigos:
pawn Код:
new ADMcars[3];
public OnGameModeInt()
{
ADMcars[0] = AddStaticVehicleEx(425, 1291.3967, -789.0521, 96.9356, 180.0000, -1, -1, 100);
ADMcars[1] = AddStaticVehicleEx(432, 1257.2365, -796.4722, 88.2104, -90.0000, -1, -1, 100);
ADMcars[2] = AddStaticVehicleEx(520, 1266.6781, -777.1772, 96.5921, 90.0000, -1, -1, 100);
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(IsPlayerInVehicle(playerid, ADMcars[0])
{
if(PlayerInfo[playerid][Level] !=1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "[Error]: Vehiculo solo para admins!")
}
}
}
pawn Код:
C:\Users\LUCAS\Desktop\SAMP\GPF Tests 0.3.7 (Ultra-H) 2\gamemodes\GPFTests2.pwn(26711) : error 010: invalid function or declaration
C:\Users\LUCAS\Desktop\SAMP\GPF Tests 0.3.7 (Ultra-H) 2\gamemodes\GPFTests2.pwn(26713) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
26711
pawn Код:
if(IsPlayerInVehicle(playerid, ADMcars[0])
pawn Код:
if(PlayerInfo[playerid][Level] !=1)