#1

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

PHP код:
    new name[21], string234[128];
            
GetPlayerName(playeridnamesizeof(name));
        
format(string234sizeof(string234), "%sban.ini"name);
        
SetTimerEx("bantimer",5000,false,"d",ID);
             
FixedKick(ID); 
Reply
#3

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

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.
Reply
#5

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

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

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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"...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)