kName = GetPlayerName(killerid); dName = GetPlayerName(playerid);
new warning[256]; format(warning, sizeof(warning), "kName Killed Dname with a ..."); GameTextForAll(warning, 5000, 1);
Originally Posted by [AC
Etch ]
i dont think its possible in gametext cause gametext can't use strings , only in SendClientMessage |
new string[128], kName[24], dName[24]; GetPlayerName(playerid, dName, 24); GetPlayerName(killerid, kName, 24); format(string, 128, "%s Killed %s with a ....", kName, dName); GameTextForAll(string, 5000, 1);
new string[128], kName[MAX_PLAYER_NAME], dName[MAX_PLAYER_NAME]; kName = GetPlayerName(killerid, kName, MAX_PLAYER_NAME); dName = GetPlayerName(playerid, dName, MAX_PLAYER_NAME); format(string, 128, "%s Killed %s with %d", kName, dName, reason); GameTextForAll(string, 5000, 1);
Originally Posted by [AC
Etch ]
just a lil update : Код:
new string[128], kName[MAX_PLAYER_NAME], dName[MAX_PLAYER_NAME]; kName = GetPlayerName(killerid, kName, MAX_PLAYER_NAME); dName = GetPlayerName(playerid, dName, MAX_PLAYER_NAME); format(string, 128, "%s Killed %s with %d", kName, dName, reason); GameTextForAll(string, 5000, 1); |
new kName,dName;
GetPlayerName(killerid,kName,MAX_PLAYER_NAME);
GetPlayerName(playerid,dName,MAX_PLAYER_NAME);
new string[128];
format(string,sizeof(string),"%s has killed %s",kName,dName);
GameTextForAll(string,2000,4);
Originally Posted by Luka™
You have to format a string before using GameText.Here's an example
pawn Код:
|
Originally Posted by Fonsie
Iget the error:
(437) : error 035: argument type mismatch (argument 2) (43 ![]() |