24.09.2012, 15:44
(
Последний раз редактировалось davve95; 24.09.2012 в 17:22.
)
Hi!
It's first time I try out this function so I got a bit problem..
But I get those errors:
Teams:
MaxPlayer: new gTeam[MAX_PLAYERS];
So I'm still a little bit Pawn beginner..
Maybe it's gets like shit because I'm very tired ^^... So maybe haven't lookt for errors enough??..
It's first time I try out this function so I got a bit problem..
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1961.9727,1593.4076,75.7188); //Ok
SetPlayerCameraPos(playerid,1952.6460,1604.4326,74.8940);
SetPlayerCameraLookAt(playerid,1953.5211,1602.3308,74.6773);
return 1;
public OnPlayerRequestClass( playerid, classid )
{
switch ( classid ) // This is like a if/elseif statement.
{
case 0: // If the classid is 0
{ // Then
GameTextForPlayer( playerid, "~r~TEAM Clowns", 300, 3 );
SetPlayerTeam( playerid, TEAM_CLOWNS );
}
case 1: // If the classid is 1
{ // Then
GameTextForPlayer( playerid, "~g~TEAM Hobos", 300, 3 );
SetPlayerTeam( playerid, TEAM_HOBOS );
}
case 2: // If the classid is 2
{ // Then
GameTextForPlayer( playerid, "~g~TEAM Army", 300, 3 );
SetPlayerTeam( playerid, TEAM_ARMY );
}
}
return 1;
}
But I get those errors:
Код:
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(4) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(260) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(260) : warning 217: loose indentation C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(260) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(261) : error 001: expected token: ";", but found "{" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(271) : error 017: undefined symbol "TEAM_CLOWNS" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(281) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(281) : error 035: argument type mismatch (argument 2) C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(291) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(291) : error 035: argument type mismatch (argument 2) C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(298) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(298) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(298) : error 004: function "OnPlayerConnect" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(303) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(303) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(303) : error 004: function "OnPlayerDisconnect" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(308) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(308) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(308) : error 004: function "OnPlayerSpawn" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(313) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(313) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(313) : error 004: function "OnPlayerDeath" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(315) : error 017: undefined symbol "killerid" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(319) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(319) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(319) : error 004: function "OnVehicleSpawn" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(324) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(324) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(324) : error 004: function "OnVehicleDeath" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(329) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(329) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(329) : error 004: function "OnPlayerText" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(334) : warning 225: unreachable code C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(334) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(334) : error 004: function "OnPlayerCommandText" is not implemented C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV-TestScript.pwn(336) : error 017: undefined symbol "cmdtext" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
pawn Код:
//Teams:
#define TEAM_ClOWNS
#define TEAM_HOBOS
#define TEAM_ARMY
So I'm still a little bit Pawn beginner..
Maybe it's gets like shit because I'm very tired ^^... So maybe haven't lookt for errors enough??..