SA-MP Forums Archive
Help with dis errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with dis errors (/showthread.php?tid=534307)



Help with dis errors - YanLanger - 29.08.2014

Код:
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(87) : error 026: no matching "#if..."
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(96) : error 026: no matching "#if..."
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(257) : warning 217: loose indentation
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(354) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
#else #endif
Код:
AddPlayerClass(105,2524.4402,-1676.4550,19.9302,91.5489,24, 2500, 34, 402, 25, 506);  // GroveSpawn
Код:
StopAudioStreamForPlayer(playerid);



Re: Help with dis errors - YanLanger - 29.08.2014

i fixed else endif but help me with the others

stopaudio..
and addplayerclass


Re: Help with dis errors - Stinged - 29.08.2014

These are warning for indentation. Fix it.


Re: Help with dis errors - Don_Cage - 29.08.2014

The indentation is just messed up.
pawn Код:
see the differance?
        this
   is
      messed
 up
pawn Код:
this is how it should be
    blah
    blah
    blah
    blah
    5



Re: Help with dis errors - YanLanger - 29.08.2014

but idk what is messed up -.-


Re: Help with dis errors - Stinged - 29.08.2014

Post the code.


Re: Help with dis errors - YanLanger - 29.08.2014

Код:
StopAudioStreamForPlayer(playerid);
    GivePlayerWeapon(playerid, 34, 321);
    GivePlayerWeapon(playerid, 24, 245);
    GivePlayerWeapon(playerid, 31, 254);
    GivePlayerWeapon(playerid, 25, 254);
Код:
AddPlayerClass(105,2524.4402,-1676.4550,19.9302,91.5489,24, 2500, 34, 402, 25, 506);  // GroveSpawn
AddPlayerClass(106,2522.2976,-1660.6244,15.4935,90.7003,24,  2500, 34, 402, 25, 506); // GroveSpawn
AddPlayerClass(107,2474.4204,-1690.7234,13.5142,346.4154,24, 2500, 34, 402, 25, 506); // GroveSpawn



Re: Help with dis errors - YanLanger - 29.08.2014

no one?


Re: Help with dis errors - PMH - 29.08.2014

Quote:
Originally Posted by YanLanger
Посмотреть сообщение
pawn Код:
StopAudioStreamForPlayer(playerid);
GivePlayerWeapon(playerid, 34, 321);
GivePlayerWeapon(playerid, 24, 245);
GivePlayerWeapon(playerid, 31, 254);
GivePlayerWeapon(playerid, 25, 254);
pawn Код:
AddPlayerClass(105,2524.4402,-1676.4550,19.9302,91.5489,24, 2500, 34, 402, 25, 506);  // GroveSpawn
AddPlayerClass(106,2522.2976,-1660.6244,15.4935,90.7003,24, 2500, 34, 402, 25, 506); // GroveSpawn
AddPlayerClass(107,2474.4204,-1690.7234,13.5142,346.4154,24,2500, 34, 402, 25, 506); // GroveSpawn
try now