sscanf 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)
+--- Thread: sscanf Help (
/showthread.php?tid=625660)
sscanf Help -
RyderX - 04.01.2017
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(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Usage: \"freevip"\"");
}
it is Correct or not? help!
Re: sscanf Help -
BiosMarcel - 04.01.2017
Ryder pls ....
Re: sscanf Help -
Pearson - 04.01.2017
Quote:
Originally Posted by [Bios]Marcel
Ryder pls ....
|
Why r u creating this for it? =DDDDD
Re: sscanf Help -
BiosMarcel - 04.01.2017
Quote:
Originally Posted by Pearson
Why r u creating this for it? =DDDDD
|
I believe you quoted the wrong person
Re: sscanf Help -
Bolex_ - 04.01.2017
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;
}
Re: sscanf Help -
RyderX - 04.01.2017
Ok guys, open a chat room and don't help me i'll never post scripting help :/
Edit: Thanks Scripter18
Re: sscanf Help -
BiosMarcel - 04.01.2017
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
Re: sscanf Help - iLearner - 04.01.2017
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:
Re: sscanf Help -
RyderX - 04.01.2017
Код:
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"\"");
}
Re: sscanf Help -
oMa37 - 04.01.2017
specifier
'i' for playerid is not gonna work fine most of the time, use
'u' instead.
And
.