Error -
Longover - 28.12.2017
Help
I'm have a error:
Код:
error 035: argument type mismatch (argument 2)
In line:
Код:
new string234[128];
format(string234, sizeof(string234), "%sban.ini", name);
SetTimerEx("bantimer",string234,false,"d",ID); // <----------------------
format(file2, sizeof(file2), "%sban.ini", name2);
FixedKick(ID);
Re: Error -
EmpireSk - 28.12.2017
PHP код:
new name[21], string234[128];
GetPlayerName(playerid, name, sizeof(name));
format(string234, sizeof(string234), "%sban.ini", name);
SetTimerEx("bantimer",5000,false,"d",ID);
FixedKick(ID);
Re: Error -
Longover - 28.12.2017
Quote:
Originally Posted by EmpireSk
PHP код:
SetTimerEx("bantimer",5000,false,"d",ID);
|
I'm need to make a /ban command (Usage: /ban [id] [ore] [reason]
problem is:how to set timer with "ore"
Example
/ban 28 1 test
And im need to instead of '5000'(your timer) to be 'ore'
Re: Error -
RogueDrifter - 28.12.2017
what the fuck is ore, and you really need to lay off and start searching and learning how to script instead of making 10 posts and spamming the forum, coming on here and asking people to make scripts for you won't help you with shit.
Re: Error -
Longover - 28.12.2017
Quote:
Originally Posted by RogueDrifter
what the fuck is ore, and you really need to lay off and start searching and learning how to script instead of making 10 posts and spamming the forum, coming on here and asking people to make scripts for you won't help you with shit.
|
"Ore" = "Hours"
Ore is a romanian word
Re: Error -
Sew_Sumi - 28.12.2017
Quote:
Originally Posted by RogueDrifter
what the fuck is ore, and you really need to lay off and start searching and learning how to script instead of making 10 posts and spamming the forum, coming on here and asking people to make scripts for you won't help you with shit.
|
Never, go full retard...
Seriously, he's here asking for help, and looking for information... He's not posting up asking people to make code for them.
Re: Error -
RogueDrifter - 28.12.2017
Quote:
Originally Posted by Sew_Sumi
Never, go full retard...
Seriously, he's here asking for help, and looking for information... He's not posting up asking people to make code for them.
|
NO, he spammed 8 posts in a day, and right here he's using a string in the timer's time param (which is an integer) like what the fuck he could've simply started off simply by reading the callbacks and functions from the sa-mp wiki and he would've learnt how to solve this faster than here and learnt even more.
@OP: read articles posted on
Samp wiki if you REALLY wanna learn scripting, posting on here when you didn't bother reading the basics will NOT help you learn how to script faster.
The problem with your post is that you used a string in the place of an integer param as i stated before.
Re: Error -
AlexMSK - 28.12.2017
Quote:
Originally Posted by RogueDrifter
NO, he spammed 8 posts in a day, and right here he's using a string in the timer's time param (which is an integer) like what the fuck he could've simply started off simply by reading the callbacks and functions from the sa-mp wiki and he would've learnt how to solve this faster than here and learnt even more.
@OP: read articles posted on Samp wiki if you REALLY wanna learn scripting, posting on here when you didn't bother reading the basics will NOT help you learn how to script faster.
The problem with your post is that you used a string in the place of an integer param as i stated before.
|
Well i think that's why this section exists, to ask for help, you can just ignore them instead of being retarded.
Re: Error -
Sew_Sumi - 28.12.2017
Quote:
Originally Posted by RogueDrifter
NO, he spammed 8 posts in a day
|
He hasn't spammed anything, he's asking for help, which is what this forum is for.
And back to the OP, you'll need to have a file, or a DB entry covering the unban times, and check every 10-15 minutes if any of the bans need to be lifted.
This would be where MySQL could be a benefit.
Re: Error -
Longover - 29.12.2017
Quote:
Originally Posted by Sew_Sumi
He hasn't spammed anything, he's asking for help, which is what this forum is for.
And back to the OP, you'll need to have a file, or a DB entry covering the unban times, and check every 10-15 minutes if any of the bans need to be lifted.
This would be where MySQL could be a benefit.
|
Thank you.
-
-
-
And sorry for "spamming"...