Bug with /biztype and all the id's - 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: Bug with /biztype and all the id's (
/showthread.php?tid=368512)
Bug with /biztype and all the id's -
BinaryLava - 13.08.2012
Hello, I've a bug with /biztype when i do /biztype it says wrong ID when i do /editbuilding name [ID] says wrong id.
Everything with wrong id and I want to fix it.
also its didn't save after gmx's.
Код:
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: Bug with /biztype and all the id's -
Yvax - 13.08.2012
pawn Код:
if( sscanf( params, "ud", id, type))
"u" is for players/bots, use "d" for both id and type.Also, make sure you're using the right version of the sscanf plugin for your SA-MP server version.
Re: Bug with /biztype and all the id's -
JofiStone - 13.08.2012
Listen Yvax can you come to his Team Viewer or add him on skype or something ? so we can sort it out ?" we really need to fix it Yvax , Add me : JofiStone ((Skype))
MSN :
jofisrp@hotmail.com
Re: Bug with /biztype and all the id's -
playbox12 - 13.08.2012
This is the wrong section, just change the u to i or d (it doesn't really matter in this case) and it should work.