SA-MP Forums Archive
Please HELP[BIG WRONG] - 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: Please HELP[BIG WRONG] (/showthread.php?tid=513787)



Please HELP[BIG WRONG] - romsisx - 18.05.2014

Hi all. I have one problem,drop one wrong.Please HELP
This WARNING
Код:
C:\Documents and Settings\Simas\Desktop\Romas(Netrink)\Romas\startGM by Leo G v0.0.1\gamemodes\startGM.pwn(497) : error 001: expected token: ")", but found "{"
Code:
Код:
if(GetPVarInt(playerid"[lytis]==1) <---- Line 497
	        {
		        SetPlayerSkin(playerid,142);
		        playerDB[playerid][uniforma]=142;
		        playerDB[playerid][uniformd]=true;
		        ApplyAnimation(playerid,"PLAYIDLES","stretch",4.1,0,0,0,0,0);
        	}
			else
			{
	        	SetPlayerSkin(playerid,151);
		        playerDB[playerid][uniforma]=151;
		        playerDB[playerid][uniformd]=true;
		        ApplyAnimation(playerid,"PLAYIDLES","stretch",4.1,0,0,0,0,0);
	        }



Re: Please HELP[BIG WRONG] - Rittik - 18.05.2014

Код:
if(GetPVarInt(playerid"[lytis]==1))<---- Line 497
	        {
		        SetPlayerSkin(playerid,142);
		        playerDB[playerid][uniforma]=142;
		        playerDB[playerid][uniformd]=true;
		        ApplyAnimation(playerid,"PLAYIDLES","stretch",4.1,0,0,0,0,0);
        	}
			else
			{
	        	SetPlayerSkin(playerid,151);
		        playerDB[playerid][uniforma]=151;
		        playerDB[playerid][uniformd]=true;
		        ApplyAnimation(playerid,"PLAYIDLES","stretch",4.1,0,0,0,0,0);
	        }
Copy and paste this.


Re: Please HELP[BIG WRONG] - JFF - 18.05.2014

Try this

pawn Код:
if(GetPVarInt(playerid"[lytis]==1))<---- Line 497
            {
                SetPlayerSkin(playerid,142);
                playerDB[playerid][uniforma]=142;
                playerDB[playerid][uniformd]=true;
                ApplyAnimation(playerid,"
PLAYIDLES","stretch",4.1,0,0,0,0,0);
            }
            else
            {
                SetPlayerSkin(playerid,151);
                playerDB[playerid][uniforma]=151;
                playerDB[playerid][uniformd]=true;
                ApplyAnimation(playerid,"
PLAYIDLES","stretch",4.1,0,0,0,0,0);
            }



Re: Please HELP[BIG WRONG] - romsisx - 18.05.2014

Quote:

C:\Documents and Settings\Simas\Desktop\Romas(Netrink)\Romas\startG M by Leo G v0.0.1\gamemodes\startGM.pwn(497) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Simas\Desktop\Romas(Netrink)\Romas\startG M by Leo G v0.0.1\gamemodes\startGM.pwn(497) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Simas\Desktop\Romas(Netrink)\Romas\startG M by Leo G v0.0.1\gamemodes\startGM.pwn(497) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Simas\Desktop\Romas(Netrink)\Romas\startG M by Leo G v0.0.1\gamemodes\startGM.pwn(497) : fatal error 107: too many error messages on one line

This warnng


Re: Please HELP[BIG WRONG] - Threshold - 18.05.2014

Congratulations, you two have achieved nothing.

pawn Код:
playerDB[playerid][uniforma] = (GetPVarInt(playerid, "[lytis]")) ? (142) : (151);
                SetPlayerSkin(playerid, playerDB[playerid][uniforma]);
                playerDB[playerid][uniformd] = true;
                ApplyAnimation(playerid, "PLAYIDLES", "stretch", 4.1, 0, 0, 0, 0, 0);
This will replace the whole thing.


Re: Please HELP[BIG WRONG] - JFF - 18.05.2014

DELETED