SA-MP Forums Archive
Script Bug , Need Help - 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: Script Bug , Need Help (/showthread.php?tid=368537)



Script Bug , Need Help - JofiStone - 13.08.2012

dcmd_biztype(playerid, params[])
{
new type, id, string[128], businesstype[128];
if( sscanf( params, "ud", id, type))
{
if( PlayerInfo[playerid][pAdmin] >= 1337 )
{
SendClientMessage( playerid, COLOR_WHITE, "USAGE: /biztype [businessid] [type]" );
SendClientMessage(playerid, COLOR_YELLOW, "| 1: 24/7 7: Paintball");
SendClientMessage(playerid, COLOR_YELLOW, "| 2: Clothes Store 8: Bank");
SendClientMessage(playerid, COLOR_YELLOW, "| 3: Club 9: Electronic Store");
SendClientMessage(playerid, COLOR_YELLOW, "| 4: Ammunation 10: Toy Store");
SendClientMessage(playerid, COLOR_YELLOW, "| 5: Casino");
SendClientMessage(playerid, COLOR_YELLOW, "| 6: Restaurant");
}
}


Re: Script Bug , Need Help - kaisersouse - 13.08.2012

*sigh*

Should be in "scripting help"

Would help to post the actual problem you're having

Would help to post the actual solution you are looking for

Would help to post warnings, errors, etc


Re: Script Bug , Need Help - ddnbb - 13.08.2012

pawn Код:
if( sscanf( params, "dd", id, type))



Re: Script Bug , Need Help - JofiStone - 13.08.2012

Okay thanks alot kaisersouse for helping


Re : Script Bug , Need Help - Sandiel - 13.08.2012

You should post the errors you get, or the issues you get in game if it compiles fine but doesn't work.
Also, the function "dcmd_biztype" should return a value.