Errors :D
#1

Hey guys ! I'm not good at error so can someone how to fix this errors :

pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(170) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1581) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1621) : error 010: invalid function or declaration
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : warning 225: unreachable code
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 017: undefined symbol "cmd_nrg"
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : fatal error 107: too many error messages on one line.
Command :
pawn Код:
CMD:nrg(playerid,params[]){ // This is the line with errors.
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
   if(IsPlayerInAnyVehicle(playerid))
   SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
   else
   {
   new Float:x, nrg,Float:y, Float:z, Float:angle;
   GetPlayerPos(playerid, x, y, z);
   nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
   SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
   PutPlayerInVehicle(playerid, nrg, 0);
   GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
   }

   return 1;
}
Thanks !
Reply
#2

/facepalm. Don't post your whole script. I highly doubt anyone will wanna fumble through a whole gamemode to fix 69523549826349875234 errors.




Replace this.
pawn Код:
CMD:nrg(playerid,params[]){
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
   if(IsPlayerInAnyVehicle(playerid))
   SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
   else
   {
   new Float:x, nrg,Float:y, Float:z, Float:angle;
   GetPlayerPos(playerid, x, y, z);
   nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
   SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
   PutPlayerInVehicle(playerid, nrg, 0);
   GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
}
}
   return 1;
   }
With this.
pawn Код:
CMD:nrg(playerid,params[]){
if(PlayerDm[playerid] == 1) return GameTextForPlayer(playerid, "Eroare: Nu poti folosi comanda in DM !",5000,5);
else
{
   if(IsPlayerInAnyVehicle(playerid))
   SendClientMessage(playerid, COLOR_RED, "EROARE: Esti deja intr-un vehicul !");
   else
   {
   new Float:x, nrg,Float:y, Float:z, Float:angle;
   GetPlayerPos(playerid, x, y, z);
   nrg = CreateVehicle(522, x +2, y, z, angle, 0, 0, 60);
   SendClientMessage(playerid, COLOR_YELLOW, "NRG-ul tau personal a fost creat!");
   PutPlayerInVehicle(playerid, nrg, 0);
   GameTextForPlayer(playerid, "~w~Personal ~b~N~g~R~p~G ~w~ was ~y~created~w~!",3000,5);
   }

   return 1;
}
Reply
#3

Ohh ... ok.Thanks for help.But still error .. LOL ! But .. i solved a big part of errors.From 24 to 5.
pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(170) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1581) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1621) : error 010: invalid function or declaration
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : warning 225: unreachable code
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 017: undefined symbol "cmd_nrg"
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(1683) : fatal error 107: too many error messages on one line
I will try to fix and this errors !
Reply
#4

Lol... What about posting them? And the code around error lines.
Reply
#5

I posted the errors and the code around error line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)