[Tutorial] How to make teams
#22

Quote:
Originally Posted by Stuun
View Post
unsure? lol i pretty tested it by my self and it worked.
Have you read my post on page 2? Because that what you provided to us can't work. It's most likely that you did write a proper script with that testing, but what you provided us will not work.

Quote:

But i remember once i used without it and it still worked..

Again, perhaps you did test it but I'm 200% sure you didn't write something like this:

pawn Code:
#include <a_samp>

#define TEAM_TEST 0

public OnPlayerConnect(playerid)
{
    case 1..5:
    {
        SetPlayerTeam(playerid, TEAM_TEST);
    }
    return 1;
}
Don't say again it will work, because it won't. This simply is not a valid code. The script can't handle "cases" without a switch statement.

Here, just tested it once again to make doubly sure that what I say is true:
Quote:
Originally Posted by PAWN Compiler
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : error 014: invalid statement; not in switch
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : warning 215: expression has no effect
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : error 001: expected token: ";", but found ".."
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : fatal error 107: too many error messages on one line

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


4 Errors.
Also, you didn't add an ID to TEAM_TEST (I refer you to my previous post again), doing this:
pawn Code:
#include <a_samp>

#define TEAM_TEST

public OnPlayerConnect(playerid)
{
    SetPlayerTeam(playerid, TEAM_TEST);
    return 1;
}
will give these errors:
Quote:
Originally Posted by PAWN Compiler
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\SAMP\#M3SA\filterscripts\tm p.pwn(7) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Quote:
Originally Posted by Stuun
View Post
And how to add more teams? i think i explained it well -.-

Just define it under it i mean #define TEAM_yourteamname.
I posted that to see if you would know about those IDs. But since you didn't tell to add those IDs (which is really important - again, see my last post on page 2), it wouldn't work. Also, by adding just a define, a whole team won't be added! You should also add more classes etc (if you want to put people in teams that way).
Reply


Messages In This Thread
How to create teams [Showing how to add colors too] - by Glossy42O - 30.10.2014, 13:55
Re: How to make teams - by xMx4LiFe - 30.10.2014, 16:44
Re: How to make teams - by Glossy42O - 30.10.2014, 17:02
Re: How to make teams - by Glossy42O - 30.10.2014, 19:39
Re: How to make teams - by xMx4LiFe - 31.10.2014, 11:15
Re: How to make teams - by Glossy42O - 31.10.2014, 11:34
Re: How to make teams - by Glossy42O - 31.10.2014, 16:21
Re: How to make teams - by xMx4LiFe - 31.10.2014, 16:39
Re: How to make teams - by Glossy42O - 31.10.2014, 17:58
Re: How to make teams - by xMx4LiFe - 01.11.2014, 10:16
Re: How to make teams - by Glossy42O - 01.11.2014, 12:12
Re: How to make teams - by Epic_Mickey - 01.11.2014, 13:22
Re: How to create teams [Showing how to add colors too] - by Kwarde - 14.11.2014, 14:58
Re: How to make teams - by Arastair - 14.11.2014, 15:26
Re: How to make teams - by Glossy42O - 14.11.2014, 15:41
Re: How to make teams - by Arastair - 14.11.2014, 15:46
Re: How to make teams - by sammp - 14.11.2014, 15:50
Re: How to make teams - by Glossy42O - 14.11.2014, 15:55
Re: How to make teams - by Kwarde - 14.11.2014, 17:00
Re: How to make teams - by sammp - 14.11.2014, 18:40
Re: How to make teams - by Glossy42O - 14.11.2014, 18:54
Re: How to make teams - by Kwarde - 14.11.2014, 19:05
Re: How to make teams - by Glossy42O - 15.11.2014, 03:45
Re: How to make teams - by Quickie - 15.11.2014, 04:51
Re: How to make teams - by Kwarde - 15.11.2014, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)