19.02.2015, 10:31
hey, Sorry for my bad english xD
i have problem with my textdraw Set String, he doesnt want to hide After showing
script:
public for Forward HideTextdraw:
first i try this is working on localhost (mean textdraw is hide after showing), then when i want to play with my friend in Hamachi server, the textdraw won't hide, Please Help
i have problem with my textdraw Set String, he doesnt want to hide After showing
script:
Код:
CMD:givecash(playerid, params[]) { new str[128], money, id; if(pInfo[playerid][Admin] >= 1) { if(sscanf(params, "ui", id, money)) return SendClientMessage(playerid, COLOR_GREEN, "[INFO]:{FFFFFF} /givecash [playerid] [amount]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREEN, "[INFO]:{FFFFFF} Player not connected!"); GivePlayerMoney(id, money); format(str, sizeof(str), "[INFO]: {FFFFFF}Administrator %s has given you $%d Money", GetName(playerid), money); SendClientMessage(id, COLOR_GREEN, str); format(str, sizeof(str), "~g~you recived $%d money from admin %s", money, GetName(playerid)); TextDrawSetString(textstring, str); TextDrawShowForPlayer(playerid, textstring); SetTimer("HideTextdraw", 3000, false); // Set timer to hide textdraw } else return SendClientMessage(playerid, COLOR_GREEN, CANT); return 1; }
Код:
forward HideTextdraw(playerid); public HideTextdraw(playerid) { TextDrawHideForPlayer(playerid, textstring); }