GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: lusta19 - 2010. október 29. - 23:51:01

Cím: Fej fölöti szöveg!!
Írta: lusta19 - 2010. október 29. - 23:51:01
Tudom van ilyen sok téma.. de nálam valamiért nem jó ez..-
SetPlayerChatBubble(playerid, text, 0xFF9900AA, 110.0, 10000);
public OnPlayerText(playerid,text[]) beraktam alá de mégse jo vagy nem jol csináltam volna?  pawnoba pedig nem jelez semi hibát
Pontosan hogy kell beteni ??
A Másik az volna hogy a  a skin feje fölöt ugye vana player neve  de én ez csak akkor látom ha egész közel vagyok hozzá hol lehet megnövelni? hogy meszebröl is látszodjona név---..
Elöre is köszönöm
Cím: Fej fölöti szöveg!!
Írta: Szilord - 2010. november 01. - 21:54:17
másold be ide az egészet amit csináltál ugy talán könyebb lenne
Cím: Fej fölöti szöveg!!
Írta: lusta19 - 2010. november 02. - 16:32:08
public OnPlayerText(playerid,text[])
   
{
 
if(text[0] == \'!\') {
new string[256];
new tmpcolour;
switch(gTeam[playerid]) {
case TEAM_GROVE: tmpcolour = COLOR_GREEN;
case TEAM_BALLAS: tmpcolour = COLOR_PINK;
case TEAM_VAGOS: tmpcolour = COLOR_YELLOW;
case TEAM_AZTECAS: tmpcolour = COLOR_LIGHTBLUE;
case TEAM_POLICE: tmpcolour = COLOR_BLUE;
default: {
     return 0;
}
  }
   GetPlayerName(playerid,pname,sizeof(pname));
   format(string,256,\"%s: %s\",pname,text[1]);
   for(new i; i < MAX_PLAYERS; i++) {
   if(IsPlayerConnected(i)) {
   if(gTeam[playerid] == gTeam) {
     SendClientMessage(i,tmpcolour,string);
   }
  }
 }
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
}
return 1;
}

 
ChuckNorris:Szerkeztve.
Cím: Fej fölöti szöveg!!
Írta: KDDomi - 2010. november 02. - 16:34:32
használd a [*code][/code*]
 tagot csillag nélkül
Cím: Fej fölöti szöveg!!
Írta: lusta19 - 2010. november 02. - 17:52:49
meg tudnád nekem csinálni?? pls
Pálya kezdö vagyok :D
Cím: Fej fölöti szöveg!!
Írta: Csabesz - 2010. november 02. - 18:04:45

public OnPlayerText(playerid,text[])
{
   SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
   
   if(text[0] == \'!\')
   {
       new string[256];
       new tmpcolour;
       switch(gTeam[playerid])
       {
           case TEAM_GROVE: tmpcolour = COLOR_GREEN;
           case TEAM_BALLAS: tmpcolour = COLOR_PINK;
           case TEAM_VAGOS: tmpcolour = COLOR_YELLOW;
           case TEAM_AZTECAS: tmpcolour = COLOR_LIGHTBLUE;
           case TEAM_POLICE: tmpcolour = COLOR_BLUE;
           default: {
           return 0;
           }
       }
       GetPlayerName(playerid,pname,sizeof(pname));
       format(string,256,\"%s: %s\",pname,text[1]);
       for(new i; i < MAX_PLAYERS; i++) {
           if(IsPlayerConnected(i)) {
               if(gTeam[playerid] == gTeam) {
                   SendClientMessage(i,tmpcolour,string);
               }
           }
       }
   }
   return 1;
}

 
Szerk.: 700. Hozzászólás!
Cím: Fej fölöti szöveg!!
Írta: lusta19 - 2010. november 02. - 18:40:08
Van 1 error  :\'(
D:\\Samp Szerver\\gamemodes\\gangwar.pwn(6988) : error 033: array must be indexed (variable \"gTeam\")
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.
Cím: Fej fölöti szöveg!!
Írta: ChuckNorris - 2010. november 02. - 19:05:37
lusta felhívnám a figyelmedet, hogy be kéne tartani a szabályzatot,a 3. warnnál el leszel némítva és már 2-õ is van neked,szóval óvatosan...