I have some help - 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: I have some help (
/showthread.php?tid=540903)
I have some help -
ThunderX - 08.10.2014
pawn Код:
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(93) : error 017: undefined symbol "gPlayerClass"
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(93) : warning 215: expression has no effect
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(93) : error 001: expected token: ";", but found "]"
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(93) : error 029: invalid expression, assumed zero
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(93) : fatal error 107: too many error messages on one line
pawn Код:
if(gPlayerClass[playerid] == SOLDIER)//This is for the First soldier class.
{
TogglePlayerControllable(playerid, 1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 200);//m4
GivePlayerWeapon(playerid, 25, 100);//mp5
GivePlayerWeapon(playerid, 24, 70);//deagle
line 93 is
pawn Код:
if(gPlayerClass[playerid] == SOLDIER)
Re: I have some help -
(SF)Noobanatior - 08.10.2014
you havent defined gPlayerClass did you just all the code in from somewhere?
show from line 85
Re: I have some help -
Ryz - 08.10.2014
add this at top
pawn Код:
new gPlayerClass[MAX_PLAYERS];
Re: I have some help -
ThunderX - 08.10.2014
i add this
pawn Код:
new gPlayerClass[MAX_PLAYERS];
and
pawn Код:
#define SOLDIER 1
#define SNIPER 2
#define PYRO 3
#define ENGINEER 4
#define JETTROOPER 5
#define PILOT 6
#define SPY 7
#define SCOUT 8
get
pawn Код:
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(170) : error 017: undefined symbol "FirstSpawn"
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(170) : warning 215: expression has no effect
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(170) : error 001: expected token: ";", but found "]"
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(170) : error 029: invalid expression, assumed zero
C:\Users\PANNAWIT\Desktop\samp\gamemodes\WW3.pwn(170) : fatal error 107: too many error messages on one line
170 =
pawn Код:
if(FirstSpawn[playerid] == 1)
Re: I have some help -
YanLanger - 08.10.2014
put this at the top
PHP код:
new FirstSpawn[MAX_PLAYERS];
Re: I have some help -
ThunderX - 08.10.2014
OHH THANK BRO NOW IT WORKING
Re: I have some help -
YanLanger - 08.10.2014
Did i do this ? :P or the others