sscanf Help
#1

Hello guys, i've been scripting VIP System,

just would make /freevip for players can type it to get freevip.

PHP код:
            if(sscanf(params"i"playerid))
            {
                
SendClientMessage(playeridCOLOR_WHITE"{B7B7B7}[SERVER] {FFFFFF}Usage: \"freevip"\"");
            } 
it is Correct or not? help!
Reply
#2

Ryder pls ....
Reply
#3

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Ryder pls ....
Why r u creating this for it? =DDDDD
Reply
#4

Quote:
Originally Posted by Pearson
Посмотреть сообщение
Why r u creating this for it? =DDDDD
I believe you quoted the wrong person
Reply
#5

Example

Код:
CMD:freevip(playerid)
{
    if(playerinfo[playerid][LoggedIn] == 1)
    {
        playerinfo[playerid][VIPl] = 1;
        SendClientMessage(playerid,-1,"Here you go ungrateful idiot! ");
    }
    else
    {
        SendClientMessage(playerid, -1, "You want free vip without logging in ? Go f*** yourself!!");
    }
    return 1;
}
Reply
#6

Ok guys, open a chat room and don't help me i'll never post scripting help :/

Edit: Thanks Scripter18
Reply
#7

If his script isn't bullshit, you wont be able to to do any commands without being logged in, so no need to check that

@Ryder the thing is , youa re asking for help when u shouldnt
Reply
#8

Sir, it s just that, your signature claims that you own / scripted a whole script, and, when you ask such stuff the only thing we can do is:

Reply
#9

Код:
COMMAND:freevip(playerid, params[])
{
 if(playerData[playerid][playerLoggedIn])
 {
  if(playerData[playerid][playerLevel] >= 0)
  {
   new
    message[128],
    message2[128]
   ;

   if(sscanf(params, "i", playerid))
   {
    SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Usage: \"freevip"\"");
   }
Reply
#10

specifier 'i' for playerid is not gonna work fine most of the time, use 'u' instead.
And .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)