Szerző Téma: team chat probléma  (Megtekintve 359 alkalommal)

team chat probléma
« Dátum: 2012. március 19. - 17:31:39 »
0 Show voters
   new pName[MAX_PLAYER_NAME];
if(gTeam[playerid] == TEAM_POLICE)
{
if(text[0] == \'!\')
         {
               new str[200];
               GetPlayerName(playerid,pName,sizeof(pName));
               format(str, sizeof(str),\"[RendörRádió] %s: %s\", pName, text[1]);
               for(new i = 0; i < MAX_PLAYERS; i++)
               {
                  if(IsPlayerConnected(i))
                  {
                     if(gTeam == TEAM_POLICE)  SendClientMessage(i, 0x9933CCAA, str);
                     }
                  }
                  return 0;
               }
   return 0;
} else { SendClientMessage(playerid, 0x9933CCAA, \"Nem vagy a megfelelõ csapatban!\"); }
}

 
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2688) : warning 217: loose indentation
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2690) : warning 217: loose indentation
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2692) : warning 209: function \"OnPlayerText\" should return a value
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2693) : error 010: invalid function or declaration
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2697) : error 010: invalid function or declaration
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2699) : error 010: invalid function or declaration
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2705) : error 010: invalid function or declaration
D:\\Trucking_Server_2.0\\gamemodes\\Truck.pwn(2709) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
5 Errors.
a segítséget elöre is köszönöm

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal