- 0
Eroare comanda
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
gabygabyt
Am si eu nevoie de ajutor. Primesc urmatoarele erori:C:\Users\Gabi\Desktop\Server with gamemode\gamemodes\gmpower.pwn(38704) : error 001: expected token: ",", but found "["
C:\Users\Gabi\Desktop\Server with gamemode\gamemodes\gmpower.pwn(38704) : error 029: invalid expression, assumed zero
C:\Users\Gabi\Desktop\Server with gamemode\gamemodes\gmpower.pwn(38704) : warning 215: expression has no effect
C:\Users\Gabi\Desktop\Server with gamemode\gamemodes\gmpower.pwn(38704) : error 001: expected token: ";", but found "]"
C:\Users\Gabi\Desktop\Server with gamemode\gamemodes\gmpower.pwn(38704) : fatal error 107: too many error messages on one line
La comanda asa:
CMD:instalator(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 16)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == instac[1] || Veh == instac[2] || Veh == instac[3] || Veh == instac[4] || Veh == instac[5] || Veh == instac[6] || Veh == instac[7] || Veh == instac[8] || Veh == instac[9] || Veh == instac[10] || Veh == instac[11] || Veh == instac[12] && PlayerInfo[playerid][pJob] == 16)
{
if(GetPlayerState(playerid) == 2)
{
DisablePlayerRaceCheckpoint(playerid);
new rand,Float:Position[3];
rand = random(sizeof(gRandomInsta));
GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
SetPlayerCheckpoint(playerid,gRandomInsta[rand][0],gRandomInsta[rand][1],gRandomInsta[rand][2], 4.0);
floatround(GetDistanceBetweenPoints(Position[0],Position[1], Position[2], gRandomInsta[rand][0], gRandomInsta[rand][1], gRandomInsta[rand][2]), floatround_round);
InstaCP[playerid] = 1;
SCM(playerid,COLOR_GREY,"Mergi la checkpointul de pe mapa pentru a repara teava casei.");
}
else return SCM(playerid,COLOR_WHITE,"You are not the driver of instalator car.");
}
else return SCM(playerid,COLOR_WHITE,"You are not in a instalator car.");
}
else return SCM(playerid,COLOR_WHITE,"You are not a Instalator.");
}
return 1;
}
19 answers to this question
Recommended Posts