/addhouse command help
#1

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 =)
Reply
#2

So what help do you need?
Reply
#3

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

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

Use search like everyone else does.
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)