Jump to content

Question

Posted

Nick:  Vlady

Problema: Imi da niste erori.

Erori / warnings:

C:\Documents and Settings\Vlady-Valy\Desktop\Others\Romania Stunt Galaxy\filterscripts\LuxAdmin.pwn(16175) : warning 211: possibly unintended assignment
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Romania Stunt Galaxy\filterscripts\LuxAdmin.pwn(16175) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Romania Stunt Galaxy\filterscripts\LuxAdmin.pwn(16175) : error 036: empty statement
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Romania Stunt Galaxy\filterscripts\LuxAdmin.pwn(16175) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Romania Stunt Galaxy\filterscripts\LuxAdmin.pwn(16175) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Lini/script:
stock MaxAmmo(playerid)
{
	new slot, weap, ammo;
	for(slot = 0; slot = 1; slot = 2; slot = 3; slot = 4; slot = 5; slot = 6; slot = 9; slot = 10; slot = 11; slot = 12; slot++);
	{
    	GetPlayerWeaponData(playerid, slot, weap, ammo);
		if(IsValidWeapon(weap))
		{
		   	GivePlayerWeapon(playerid, weap, 99999);
		}
	}
	return 1;
}
Linia este
for(slot = 0; slot = 1; slot = 2; slot = 3; slot = 4; slot = 5; slot = 6; slot = 9; slot = 10; slot = 11; slot = 12; slot++);

Ai incercat sa rezolvi singur ?: Nush cum

6 answers to this question

Recommended Posts

  • Administrator
Posted

Asa ceva nu exista!

Uita-te aici si incearca sa inveti cum este structura for / pentru.

http://www.sa-mp.ro/forum/index.php?topic=31457.0

Posted

Eu vreau doar cand scriu /maxammo sa-mi dea gloante maxime doar la anumite sloturi de arme nu la toate ...

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.