#1

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

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);
    }
Reply
#3

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.
Reply
#4

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
Reply
#5

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

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;
}
Reply
#7

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?
Reply
#8

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.
Reply
#9

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

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".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)