Bug with /biztype and all the id's
#1

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

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

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)