Making teams.
#1

I followed this http://weedarr.wikidot.com/teams tutorial but still i got theese errors:
Код:
C:\Users\Alle\Desktop\SA-MP Server\gamemodes\BaysideRoleplay.pwn(10) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Alle\Desktop\SA-MP Server\gamemodes\BaysideRoleplay.pwn(10) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Alle\Desktop\SA-MP Server\pawno\include\a_http.inc(22) : error 001: expected token: ";", but found "native"
Reply
#2

Post these lines 10 and 22.
Reply
#3

Post the lines please ^^
Reply
#4

Okay
Код:
22:new wjob;
10:new gTeam[MAX_PLAYERS];
Reply
#5

#include <a_samp> ?
Reply
#6

Yes i have it
Reply
#7

http://pastebin.com/fvUZ2Hmw
Use this one, i've made this one earlier for someone else; change all the things to your own needs and if you need any help just post
Reply
#8

How do i do here? SetPlayerTeamFromClass(playerid, classid);

Код:
public OnPlayerRequestClass(playerid, classid)
{
        switch(classid)
        {
                case 0: // Change everything to your needs
                {
                        SetPlayerTeamFromClass(playerid, classid);
                        SetPlayerInterior(playerid,17);
                        SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
                        SetPlayerFacingAngle(playerid, 137.9666);
                        SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
                        SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
                        GameTextForPlayer(playerid, "Class 1", 1000, 3);
                }
                case 1:
                {
                        SetPlayerTeamFromClass(playerid, classid);
                        SetPlayerInterior(playerid,17);
                        SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
                        SetPlayerFacingAngle(playerid, 137.9666);
                        SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
                        SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
                        GameTextForPlayer(playerid, "Class 2", 1000, 3);
                }
                case 2:
                {
                        SetPlayerTeamFromClass(playerid, classid);
                        SetPlayerInterior(playerid,17);
                        SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
                        SetPlayerFacingAngle(playerid, 137.9666);
                        SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
                        SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
                        GameTextForPlayer(playerid, "Class 3", 1000, 3);
                }
        }
        return 1;
}
Reply
#9

This is just the place, where you can "show" your classes.
You can place this anywhere in game, aslong you got the positions, interiors, angles and camerapositions.
Reply
#10

Yes but how do i put the playerclass text there? I can't make it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)