SA-MP Forums Archive
Command bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command bug (/showthread.php?tid=589254)



Command bug - AnoTek - 17.09.2015

When i type a command any command from the gamemode for example /stats this happens:

https://www.youtube.com/watch?v=YYjWMVyDgdw

Script: http://pastebin.com/gk6hYQ1k

How can i solve this bug?


Re: Command bug - Trollerz - 17.09.2015

Video not working


Re: Command bug - Trollerz - 17.09.2015

PHP Code:
CMD:stats(playeridparams[])
{
        new 
stats[248];
        
format(statssizeof(stats), "STATS",playername);
        
SendClientMessage(playerid,0xFFFFFFC8,stats);
        
format(statssizeof(stats), "{80FFFF}%s {FFFFFF}stats",playername);
        
SendClientMessage(playerid,0xFFFFFFC8,stats);
    
format(statssizeof(stats), "{80FFFF}General: {FFFFFF}Money %d$, Bankmoney %d$",PlayerInfo[playerid][pCash],PlayerInfo[playerid][pBankmoney]);
    
SendClientMessage(playerid,0xFFFFFFC8,stats);
        
SendClientMessage(playerid,0xFFFFFFC8,stats);
        return 
1;