new veiculoCTR;
CMD:ct(playerid, params[])
{
new x,y,z;
if(CSMBR[playerid] == ROCAM || CSMBR[playerid] == ROTA) // VERIFICA SE Й POLICIAL
{
DestroyVehicle(veiculoCTR);
SetPlayerPos(playerid,1716.5999800,749.7999900,9.9000000);
veiculoCTR = CreateVehicle(523,1752.1411,683.9146,10.5176,92.5144,1,1,100000);
PutPlayerInVehicle(playerid, veiculoCTR, 0);
PlayerPlaySound(playerid, 5201, x,y,z);
GameTextForPlayer(playerid, "Seja bem vindo ao centro de treino da ROCAM.", 9000, 5);
if(Blindado[veiculoCTR] == true)
RepairVehicle(veiculoCTR);
}
else
{
SCM(playerid, 0xAA3333AA, " VOCК NГO Й POLICIAL!");
}
}
DestroyVehicle(veiculoCTR);
//variaveis globais
new
bool: plr_in_ct_veh [ MAX_PLAYERS ],
vehicle_ct [ MAX_PLAYERS ];
CMD:ct(playerid, params[])
{
if(CSMBR[playerid] != ROCAM || CSMBR[playerid] != ROTA)
return SCM(playerid, 0xAA3333AA, " VOCК NГO Й POLICIAL!");
if ( plr_in_ct_veh [ playerid ] )
DestroyVehicle ( vehicle_ct [ playerid ] );
SetPlayerPos(playerid,1716.5999800,749.7999900,9.9000000);
vehicle_ct [ playerid ] = CreateVehicle(523,1752.1411,683.9146,10.5176,92.5144,1,1,100000);
PutPlayerInVehicle(playerid, vehicle_ct [ playerid ], 0);
plr_in_ct_veh [ playerid ] = true;
new
Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
PlayerPlaySound(playerid, 5201, x,y,z);
GameTextForPlayer(playerid, "Seja bem vindo ao centro de treino da ROCAM.", 9000, 5);
if(Blindado[vehicle_ct [ playerid ]] == true)
RepairVehicle(vehicle_ct [ playerid ]);
return 1;
}
plr_in_ct_veh [ playerid ] = false;
C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 017: undefined symbol "Blindado" C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : warning 215: expression has no effect C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 001: expected token: ";", but found "]" C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 029: invalid expression, assumed zero C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Deu esses erros...
Код:
C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 017: undefined symbol "Blindado" C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : warning 215: expression has no effect C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 001: expected token: ";", but found "]" C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : error 029: invalid expression, assumed zero C:\Users\DaviWindows\Desktop\[CSMBR] Gamer Virtual Server\gamemodes\[CSMBR].pwn(1416) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
A definiзгo da org ta errada, pois quando dou /ct com a ROCAM, o mesmo nгo vai, diz que nгo sou da ROCAM.
e tambйm, e nгo entendi muito o cуdigo por que num to vendo os { } xP.... E me atrapalha um pouco isso... |