Search Results
TIL that you can use %<int> to tabulate (/t). Currently seeing what else you can use it on. Seems it adds spaces per int (%06s will add 6, %12s will add 12 etc).
pawn Code:
if(strcmp(cmd, "/t...
52,725
Why have you got spaces in your column names?
438
Why are you registering players via HTTP? You're creating more issues than you're solving. Particularly sending passwords via HTTP.
You're doing it the most ass-backwards way possible.
391
Код HTML:
new number = 600;
printf("%06d", number);
You're looking for the 06 part of the code above. It tells the function to pad zero's on up to the (n)th digit.
pawn Код:
%0(n)<...
220
Like this?
pawn Код:
SELECT `username`,`score` FROM `players` ORDER BY `score` ASC LIMIT 10
Selects and orders top 10 players by score asc (1, 2, 3 etc).
EDIT: Found a useful tutorial on the SQ...
265
Holy shit. Why in gods name are you redefining SendClientMessage(); as SCM?
Your gTeam needs to be global since it looks like you're using it as an indication of the players team (i feel you've cop...
336
Would this be of any use?
Quote:
Originally Posted by bartekdvd
Here is an example:
pawn Код:
#include <a_samp>bool:HasAnimationApplied(playerid, animlib[], animname[]){ n...
419
Yeah don't do what DeMoo posted. Bad idea. OnPlayerUpdate(); is called 30 times a second. Its pointless checking this way.
As for what you want;
You might want to do it via a one second timer, loo...
226
Just a couple of things Dayrion, IsPlayerConnected(); is useless since it checks players connected.
369
No, you would not. Simply comparing both ID's stored in the array would suffice.
As for your issue, you need to specify a destination size, since you're storing the info in an array. Like so:
edit: ...
360
Why are you saving GUN(n)OWNER as a varchar? Simply compare the ID's of the owner ID, to the apparent gun owner.
360
pawn Код:
new PlayerText:LoginExitTD[MAX_PLAYERS];
pawn Код:
LoginExitTD[playerid] = CreatePlayerTextDraw(...);
Read more here.
Every LoginExitTD becomes LoginExitTD[playerid].
260
Do you have SSH access?
pawn Код:
apt-get install lib32stdc++6
Make sure you also have the .so extension in the plugins name.
pawn Код:
plugins mysql.so sscanf.so
404
Looks like you've miscounted the columns you're trying to insert.
pawn Код:
[13:15:51] [ERROR] error #1136 while executing query "INSERT INTO `PLAYERS` (`USERNAME`, `PASSWORD`, `SALT`, `SCORE`, `...
405
They're being parsed, you're just not actually showing the second parameters.
pawn Код:
SendClientMessage(playerid, -1, params[1]);
285
What version of the plugin are you using?
R40+
pawn Код:
mysql_log(ALL); //Creates folder/files in /logs/
R39(ish)
pawn Код:
mysql_log(LOG_ALL, LOG_TYPE_HTML); //Or log_type_text. HTML is e...
377
Does the value of
pawn Код:
sscanf(params, "s[25]I(-1)I(-1)");
Not work?
258
Remove the slash (/), or escape it.
https://stackoverflow.com/questions/...ward-slash-and
464
Are you using YSI just for foreach? There's a standalone version here
220
pawn Код:
if(strcmp(inputtext,pass, false) == 0) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login Information", "Please Enter Your Password, You Have Entered Wrong Passwo...
371