Quote:
Originally Posted by Ahimel
Code:
void SQL_CheckSPOT(client)
{
char[] Query = new char[150];
decl String:steamID64[18];
GetClientAuthId(client, AuthId_SteamID64, steamID64, sizeof(steamID64));
|
This one is seriously bad, -
Do the SteamID checking properly, as
explained in this post.
Doing otherwise will produce unexpected results...
Quote:
Originally Posted by ThatKidWhoGames
You need to change each of the <= 0 to != 1. You could also simply use one StrContains and check if the string player exists. You also can't return Plugin_Continue to a void function.
|
I believe you mean to do "!= -1", with your advice:
Quote:
Originally Posted by https://sm.alliedmods.net/new-api/string/StrContains
Return Value
-1 on failure (no match found). Any other value indicates a position in the string where the match starts.
|
__________________