public OnPlayerText(playerid,text[]){new sz_str[144];if(IsPlayerAdmin(playerid)) //ha admin{format(sz_str,sizeof(sz_str),\"[TULAJ] %s(%d): %s\",GetName(playerid),playerid,text);return SendClientMessageToAll(-1,sz_str);}else{format(sz_str,sizeof(sz_str),\"[JÁTÉKOS] %s(%d): %s\",GetName(playerid),playerid,text); //JÁTÉKOS vagy amit akarszreturn SendClientMessageToAll(-1,sz_str);}} stock GetName(playerid){new sz_name[MAX_PLAYER_NAME]GetPlayerName(playerid,sz_name,MAX_PLAYER_NAME);return sz_name;}
C:\\Documents and Settings\\david\\Asztal\\...\\gamemodes\\aesde.pwn(878) : error 001: expected token: \";\", but found \"-identifier-\"
GetPlayerName(playerid,sz_name,MAX_PLAYER_NAME);
public OnPlayerText(playerid,text[]){new sz_str[144];if(IsPlayerAdmin(playerid)){format(sz_str,sizeof(sz_str),\"[TULAJ] %s(%d): %s\",GetName(playerid),playerid,text);SendClientMessageToAll(-1,sz_str);return 0;}else{format(sz_str,sizeof(sz_str),\"[JÁTÉKOS] %s(%d): %s\",GetName(playerid),playerid,text); //JÁTÉKOS vagy amit akarszSendClientMessageToAll(-1,sz_str);return 0;}} stock GetName(playerid){new sz_name[MAX_PLAYER_NAME];GetPlayerName(playerid,sz_name,sizeof(sz_name));return sz_name;}