Raised This Month: $51 Target: $400
 12% 

plugin stop random


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex2001
Member
Join Date: May 2019
Old 06-09-2019 , 08:19   plugin stop random
Reply With Quote #1

someone know why this plugins stop random?
I see becaus

public bool

Last edited by alex2001; 06-11-2019 at 14:38. Reason: Restore to previous version.
alex2001 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 06-09-2019 , 09:39   Re: plugin stop random
Reply With Quote #2

like i told you before use threaded query
__________________
8guawong is offline
alex2001
Member
Join Date: May 2019
Old 06-09-2019 , 09:52   Re: plugin stop random
Reply With Quote #3

what? i dont unterstand
alex2001 is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 06-09-2019 , 10:29   Re: plugin stop random
Reply With Quote #4

You should use SQL_TQuery instead of SQL_Query

And before you're open a new post about how to use it, check out this
https://forums.alliedmods.net/showthread.php?t=248587
Nexd is offline
alex2001
Member
Join Date: May 2019
Old 06-09-2019 , 10:40   Re: plugin stop random
Reply With Quote #5

dont know
can you do this for this?
Quote:
public Action UseRef(int client, int args) {
char arg1[64], steamid[64], nume[64], query[200];
if (args < 1) {
ReplyToCommand(client, "Foloseste sm_use_refferal <cod>");
return Plugin_Handled;
}

GetCmdArg(1, arg1, sizeof(arg1));
Format(query, sizeof(query), "SELECT code FROM RefCod WHERE code = '%s'", arg1);
DBResultSet hQuery = SQL_TQuery(DB,UseReffCallpublic, query);
if (hQuery != INVALID_HANDLE) {
if (SQL_FetchRow(hQuery)) {
char cod[64];
GetClientName(client, nume, sizeof(nume));
GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid));
SQL_FetchString(hQuery, 0, cod, sizeof(cod));
CodFolosit(client, nume, steamid, cod);
}
else {
CGOPrintToChat(client, "{GREEN}Codul {RED}%s {GREEN}nu exista.", arg1);
LogError("Jucatorul %s a incercat codul %s -> Nu exsita", nume, arg1);
}
}
else
ReplyToCommand(client, "EROARE_USE");

return Plugin_Handled;
}
alex2001 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode