Script Bug , Need Help
#1

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");
}
}
Reply
#2

*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
Reply
#3

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

Okay thanks alot kaisersouse for helping
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)