22.12.2017, 00:18
PHP код:
new VRC[11];
public OnGameModeInit()
{
VRC[0] = AddStaticVehicleEx(510, 1730.5958, -1714.8099, 13.1575, 134.0000, 226,226,60);
VRC[1] = AddStaticVehicleEx(510, 1729.9027, -1714.1460, 13.1575, 134.0000, 226,226,60);
VRC[2] = AddStaticVehicleEx(510, 1729.1782, -1713.3990, 13.1575, 134.0000, 226,226,60);
VRC[3] = AddStaticVehicleEx(510, 1728.4216, -1712.6520, 13.1575, 134.0000, 226,226,60);
VRC[4] = AddStaticVehicleEx(510, 1727.6616, -1711.8744, 13.1575, 134.0000, 226,226,60);
VRC[6] = AddStaticVehicleEx(510, 1712.6514, -1715.0088, 13.1575, 224.0000, 6,6,60);
VRC[7] = AddStaticVehicleEx(510, 1713.3564, -1714.3573, 13.1575, 224.0000, 6,6,60);
VRC[8] = AddStaticVehicleEx(510, 1714.0463, -1713.7191, 13.1575, 224.0000, 6,6,60);
VRC[9] = AddStaticVehicleEx(510, 1714.7125, -1713.0839, 13.1575, 224.0000, 6,6,60);
VRC[10] = AddStaticVehicleEx(510, 1715.3793, -1712.4772, 13.1575, 224.0000, 6,6,60);
for(new rcv; rcv < MAX_VEHICLES; rcv++)
{
if(rcv >= VRC[0] && rcv <= VRC[sizeof(VRC)-1])
{
format(STRX, sizeof(STRX), "{7CFC00}%s\n{FFFFFF}•• Veнculo Publico ••", veehName[GetVehicleModel(rcv)-400]);
new Text3D:d3d = Create3DTextLabel(STRX, 0xFFFFFFFF, 0.0, 0.0, 0.0, 10.0, 0);
Attach3DTextLabelToVehicle(d3d, rcv, 0.0, 0.0, 0.0);
GivePlayerGrana(playerid, -400);
}
}
ERRO:
: error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.