Hello, I create a command vehicle ignition and the copilot gave me some errors,
Код:
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(2532) : warning 213: tag mismatch
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11068) : error 001: expected token: "-identifier-", but found "="
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11069) : warning 202: number of arguments does not match definition
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11080) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11087) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11089) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11092) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11093) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11095) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11587) : warning 202: number of arguments does not match definition
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11589) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11590) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11593) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11593) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11593) : error 029: invalid expression, assumed zero
D:\SAMP SV\Wolrd Gaming\gamemodes\PRP.pwn(11593) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.
Код:
new idcar = GetPlayerVehicleID(playerid);
if(IsAnOwnableCar(idcar))
{
if(CarInfo[newcar][cOwned]==1)
{
SendClientMessage(playerid, COLOR_GREY, "Lo Siento, el coche ya tiene dueсo");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
if(PlayerInfo[playerid][pCarkey] == 999) { }
else { SendClientMessage(playerid, COLOR_GREY, "No puedes comprar mas, solo se permite 1 coche."); return 1; }
if(CarInfo[idcar][cOwned]==1)
{
SendClientMessage(playerid, COLOR_GREY, "No puedes comprar este vehiculo, Ya tiene dueсo.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
//return 1;
}
if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
{
if(PlayerInfo[playerid][pCarkey] == 999) { PlayerInfo[playerid][pCarkey] = idcar; }
else { return 1; }
GetPlayerName(playerid, sendername, sizeof(sendername));
CarInfo[idcar][cOwned] = 1;
CarInfo[idcar][cOwner] = sendername;
//strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-CarInfo[idcar][cValue]);
PlayerPlayMusic(playerid);
SendClientMessage(playerid, NARANJA, "Compra Exitosa!, recuerda usar /llaves Estacionar para aparcar el coche en un lugar fijo");
SendClientMessage(playerid, NARANJA, "Si tienes dudas con el coche, vende el coche con /llaves vender en la consecionaria");
TogglePlayerControllable(playerid, 1);
DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " No tienes Suficiente dinero para comprar este vehiculo ! ");
return 1;
}
}
}
else
{
SendClientMessage(playerid, NARANJA, "Usa: /Llaves [Opcion]");
SendClientMessage(playerid, COLOR_WHITE, "Estacionar, Bloquear, VenderD, Color");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/donar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USO: /charity [Cantidad]");
return 1;
}
if(PlayerInfo[playerid][pLocal] == 106)
{
SendClientMessage(playerid, COLOR_GRAD1, "El comando no esta permitido aqui");
return 1;
}
moneys = strval(tmp);
if(moneys < 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "No es suficiente.");
return 1;
}
if(GetPlayerMoney(playerid) < moneys)
{
SendClientMessage(playerid, COLOR_GRAD1, "No tienes tanto dinero.");
return 1;
}
GivePlayerMoney(playerid, -moneys);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s , gracias por tu donacion de $%d.",sendername, moneys);
printf("%s", string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD1, string);
PayLog(string);
}
return 1;
}
if(strcmp(cmd, "/RespawnSinUso", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, " No Autorizado para Usar el Comando!");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
#define XZone 2638.8745
#define YZone -2125.3684
#define ZZone 13.5469
#define Range 30
new Float:pos[3];
for(new car = 1; car <= TOTAL_VEH; car++)
{
GetVehiclePos(car, pos[0], pos[1], pos[2]);
if(pos[0] > XZone - Range && pos[0] < XZone + Range &&
pos[1] > YZone - Range && pos[1] < YZone + Range &&
pos[2] > ZZone - Range && pos[2] < ZZone + Range)
unwanted[car] = true;
if(!unwanted[car]) SetVehicleToRespawn(car);
}
#undef XZone
#undef YZone
#undef ZZone
#undef Range
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Servidor: Todos Los Coches Sin Uso, Fueron Respawneados Por: %s.", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}
Please show the lines.
and..
They mean compilation errors and someone good with scripting.