Szerző Téma: Random Chat Szín  (Megtekintve 1703 alkalommal)

Random Chat Szín
« Dátum: 2011. október 29. - 11:24:51 »
0 Show voters
Hello azt hogy lehet megoldani ha írok akkor mindig más színnel irja ki amit irtam?

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
Random Chat Szín
« Válasz #1 Dátum: 2011. október 29. - 11:29:27 »
0 Show voters

Random Chat Szín
« Válasz #2 Dátum: 2011. október 29. - 11:32:30 »
0 Show voters
H:\\SvsR-R5\\filterscripts\\szin.pwn(60) : error 017: undefined symbol \"color\"

Random Chat Szín
« Válasz #3 Dátum: 2011. október 29. - 11:37:05 »
0 Show voters

Random Chat Szín
« Válasz #4 Dátum: 2011. október 29. - 11:40:24 »
0 Show voters
Idézetet írta: kadaradam date=1319881025\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"12840\" data-ipsquote-contentclass=\"forums_Topic
vagy:
http://sampforum.hu/index.php?topic=15387.0
 
Ez jó lenne de nevet is beszinezi azt nemlehet megoldani h csak a szöveget?

Random Chat Szín
« Válasz #5 Dátum: 2011. október 29. - 13:53:16 »
0 Show voters
[pawn]#include <a_samp>
new color[][21]=
{
   \"{FFFF00}\", \"{00FFFF}\", \"{FF3366}\", \"{FFFFAA}\",
   \"{FFFFF0}\", \"{660000}\", \"{FF66FF}\", \"{33CCFF}\",
   \"{DD2357}\", \"{7CFC00}\", \"{FFE87D}\", \"{7E60FF}\",
   \"{AFAFAF}\", \"{FF9900}\", \"{0000BB}\", \"{FF0000}\",
   \"{FF0606}\", \"{FB0000}\", \"{99FF00}\", \"{B22222}\",
   \"{FFFFF0}\", \"{778899}\", \"{CD853F}\", \"{FFFFFF}\"
};
public OnPlayerText(playerid, text[])
{
   new
      string[128],
      rand,
      name[MAX_PLAYER_NAME];
   GetPlayerName(playerid,name,sizeof(name));
   rand = random(sizeof(color));
   format(string,sizeof(string),\"[%d] %s: %s%s\",playerid,name,color[rand][0],text);
   SendClientMessageToAll(GetPlayerColor(playerid),string);
   return 0;
}[/pawn]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal