SA-MP Forums Archive
/addhouse command 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /addhouse command help (/showthread.php?tid=230553)



/addhouse command help - GNGification - 23.02.2011

I have created some of /addhouse command but I really dont know what to do next

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/addhouse", cmdtext) == 0)
{
new name[128], price, Float:FX,Float:FY,Float:FZ;
if(sscanf(params, "s[128]d",price,name)) SendClientMessage(playerid, COLOR_GREY, "Usage: /addhouse [price] [name]");
CreateHouse(name, price, FX, FY, FZ);

return 1;
}



Need something from the script to fill this? ask =)


Thank you allready =)


Re: /addhouse command help - maramizo - 23.02.2011

So what help do you need?


Re: /addhouse command help - GNGification - 23.02.2011

Do I need to add to that something?


Also same time a problem what I need to ask

error: (102) : error 017: undefined symbol "sscanf"

Line 102: if(sscanf(params, "s[128]d",price,name)) SendClientMessage(playerid, 0xFFFFFFF, "Usage: /addhouse [price] [name]");


I think thats a include or something, isnt it?

If it is I need a download link


Re: /addhouse command help - BMUK - 23.02.2011

You want to be charging for scripts/gamemodes etc and your posting stupid threads like this?

Use search like everyone else does.


Re: /addhouse command help - maramizo - 23.02.2011

add up
pawn Код:
#include <sscanf2>
At the top of your code.
Download it here.

Quote:

You want to be charging for scripts/gamemodes etc and your posting stupid threads like this?

Use search like everyone else does.

+1


Re: /addhouse command help - xRyder - 23.02.2011

Quote:
Originally Posted by GNGification
Посмотреть сообщение
Do I need to add to that something?


Also same time a problem what I need to ask

error: (102) : error 017: undefined symbol "sscanf"

Line 102: if(sscanf(params, "s[128]d",price,name)) SendClientMessage(playerid, 0xFFFFFFF, "Usage: /addhouse [price] [name]");


I think thats a include or something, isnt it?

If it is I need a download link
OMG! FFS you just need to download the plugin. Hard?