#1

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

post your defined code please and a example of pteam
Reply
#3

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

Reply
#4

pawn Код:
new pTeam[MAX_PLAYERS];
Reply
#5

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)