SA-MP Forums Archive
pTeam - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pTeam (/showthread.php?tid=224505)



pTeam - Too - 11.02.2011

I followed a tutorial on the forums and even just copied and pasted the code into my new gamemode and it says everytime it says that pTeam isent define when it is.

Any ideas?


Re: pTeam - Zack9764 - 11.02.2011

post your defined code please and a example of pteam


Re: pTeam - Too - 11.02.2011

Includes:
Quote:

#include <a_samp>
#include zcmd
#if defined FILTERSCRIPT
#define pTeam
#define TEAM_SASD 1

Command:
Quote:

if (strcmp("/sasd", cmdtext, true, 10) == 0)
{
pTeam[playerid] = TEAM_SASD;
return 1;
}




Re: pTeam - [L3th4l] - 11.02.2011

pawn Код:
new pTeam[MAX_PLAYERS];



Re: pTeam - Too - 11.02.2011

Didnt work,put it in near the defines and I still get the undefined symbol.


Re: pTeam - Mean - 12.02.2011

Put it at the top of your script, THE TOP. Where includes are! And delete the #define pTeam, it just faxs the new pTeam[MAX_PLAYERS], you must delete it!


AW: pTeam - Nero_3D - 12.02.2011

remove
pawn Код:
#if defined FILTERSCRIPT
and somewhere down in your script
pawn Код:
#endif



Re: pTeam - Too - 12.02.2011

Ive done everything everybody said but now when I added #endif as Nero said I get a "No matching #if......." error


Re: pTeam - Mean - 12.02.2011

Remove the #endif. But #define pTeam will not work, delete the
pawn Код:
#define pTeam
And replace it with
pawn Код:
new pTeam[ MAX_PLAYERS ];



Re: pTeam - Too - 12.02.2011

Did as you said.Removed the #define and #endif.Now none of my commands work,even ones that worked before.