Quote:
Originally Posted by ReD_HunTeR
pawn Код:
else if(!strcmp(settings, "Radio", true)) { if(!PlayerHasItem(playerid,"Statie Radio")) return SendClientMessage(playerid, -1, "You don't have radio"); new str[128]; if(pInfo[playerid][rChat] == 1) { pInfo[playerid][rChat] = 0; format(str, sizeof(str), "* %s uses fingers and clicks ON.", PlayerName(playerid)); ProxDetector(30, playerid, str, COLOR_PURPLE); } else { pInfo[playerid][rChat] = 1; format(str, sizeof(str), "* %s uses fingers and cliks OFF.", PlayerName(playerid)); ProxDetector(30, playerid, str, COLOR_PURPLE); } return 1; }
you dont have to use multi variables for string, one is enough, and it happend cuz u were storing value in str2, and sending str which is empty
|
Oh, yes, I didn't see that str is not str2. Thanks!