Ilyet egyszer már nyitottál nem?
public OnPlayerConnect(playerid) return SetPlayerColor(playerid, ((random(0xFFFFFF) << | 0xAA));public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) {format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);return SendClientMessageToAll(-1, string);} else return SendPlayerMessageToAll(playerid, text);return 0;}
Neeem akarom leírni a kódot, mert sokat sz0pt4m vele.. public OnPlayerConnect(playerid) return SetPlayerColor(playerid, ((random(0xFFFFFF) << | 0xAA));public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) {format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);return SendClientMessageToAll(-1, string);} else return SendPlayerMessageToAll(playerid, text);return 0;} remélem mûködik.
stock PlayerName(playerid){new playername[MAX_PLAYER_NAME];GetPlayerName(playerid, playername, sizeof(playername));return playernamename;}
... Igen szerintem is kell mûködnie, viszont neki ha nincs stockolva a PlayerName akkor megint kérdése lenne úgyhogy én még kiegészíteném ezzel: stock PlayerName(playerid){new playername[MAX_PLAYER_NAME];GetPlayerName(playerid, playername, sizeof(playername));return playernamename;} Ezt rakd be a scripted/modod aljára [/quote]hopsz el is felejtettem.
...
C:\\Documents and Settings\\Rendszergazda\\Asztal\\GTAAAA\\TeamWars\\jocko.pwn(98) : warning 225: unreachable codeC:\\Documents and Settings\\Rendszergazda\\Asztal\\GTAAAA\\TeamWars\\jocko.pwn(1192) : error 017: undefined symbol \"playernamename\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
stock PlayerName(playerid){new playername[MAX_PLAYER_NAME];GetPlayerName(playerid, playername, sizeof(playername));return playername;}
return 0;
ezt a hibát jelzi. C:\\Documents and Settings\\Rendszergazda\\Asztal\\GTAAAA\\TeamWars\\jocko.pwn(98) : warning 225: unreachable codeC:\\Documents and Settings\\Rendszergazda\\Asztal\\GTAAAA\\TeamWars\\jocko.pwn(1192) : error 017: undefined symbol \"playernamename\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) {format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);return SendClientMessageToAll(-1, string), 0;} else return SendPlayerMessageToAll(playerid, text), 0;return 0;}
public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) return format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid),text),SendClientMessageToAll(-1, string);return 1;}
Próbáld meg így: public OnPlayerText(playerid, text[]) {new string[256];if(IsPlayerAdmin(playerid) return format(string, sizeof(string), \"{%06x}%s: {ff0000}%s\", GetPlayerColor(playerid) >>> 8, PlayerName(playerid),text),SendClientMessageToAll(-1, string);return 1;} Vagy nem tudom én se de egy próbát megér