SA-MP Forums Archive
Skins - 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: Skins (/showthread.php?tid=371509)



Skins - [M.A]Angel[M.A] - 23.08.2012

Can anyone give me all the skins from the OnGameModeInit ? I mean AddPlayerClass
thanks!


Re: Skins - Roko_foko - 23.08.2012

pawn Код:
for(i=0;i<=299;i++)
    {
        if(i!=74)
        AddPlayerClass(i,1530.4608,-888.9562,61.1226,57.5597,0,0,0,0,0,0);
    }



Re : Re: Skins - [M.A]Angel[M.A] - 23.08.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
pawn Код:
for(i=0;i<=299;i++)
    {
        if(i!=74)
        AddPlayerClass(i,1530.4608,-888.9562,61.1226,57.5597,0,0,0,0,0,0);
    }
D:\Paradise-0.3c v4\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 017: undefined symbol "i"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : warning 205: redundant code: constant expression is zero
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 017: undefined symbol "i"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : warning 215: expression has no effect
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 001: expected token: ")", but found ";"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Re: Re : Re: Skins - Roko_foko - 23.08.2012

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
D:\Paradise-0.3c v4\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 017: undefined symbol "i"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : warning 205: redundant code: constant expression is zero
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 017: undefined symbol "i"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : warning 215: expression has no effect
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : error 001: expected token: ")", but found ";"
C:\Users\MaHdy\Desktop\SPA5.3.pwn(501) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
for(new i=0;blablbla


Re: Skins - preda98 - 23.08.2012

Код:
	            for(new i = 0; i < 299; i++)
	            {
	                //CODE HERE;
		    }



Re: Skins - RedJohn - 23.08.2012

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    for(new i = 0;i<=299;++i)
    AddPlayerClass(i, 963.7003, -1616.3728, 14.7561, 180, 0, 0, 0, 0, 0, 0); //Change 963.7003 to your x coord, -1616.3728 to your y coord, 14.7561 to your z coord, 180 to your angle, and the rest are for weapons and ammo.
    return 1;
}



Re : Re: Skins - [M.A]Angel[M.A] - 23.08.2012

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    for(new i = 0;i<=299;++i)
    AddPlayerClass(i, 963.7003, -1616.3728, 14.7561, 180, 0, 0, 0, 0, 0, 0); //Change 963.7003 to your x coord, -1616.3728 to your y coord, 14.7561 to your z coord, 180 to your angle, and the rest are for weapons and ammo.
    return 1;
}
Ty! , but can u give me information about the "963.7003, -1616.3728, 14.7561, 180, 0, 0, 0, 0, 0, 0" ? is this pos?


Re: Re : Re: Skins - RedJohn - 23.08.2012

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
Ty! , but can u give me information about the "963.7003, -1616.3728, 14.7561, 180, 0, 0, 0, 0, 0, 0" ? is this pos?
Can you see this green text in my post, read that to the end.


Re: Skins - RedJohn - 23.08.2012

BTW, read this https://sampwiki.blast.hk/wiki/AddPlayerClass if you still can't understand.


Re: Skins - Lordzy - 23.08.2012

Just using "for" doesnt make any sense.
So you've to define variables also using "new"
pawn Код:
for(i = 0;i<=299;++i)//Here "i" isnt defined.
//So,we've to define i variable also.
for(new i = 0;i<=299;++i)//Here its defined because we've used "new".