Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Salutare la toti am venit cu o problema minora :)) pe care nu stiu cum sa o fac ... vreau sa verifice daca este scris...sau nu ceva intrun database , de exemplu daca la numele %s nu este scris %s sa primeasca kick ex:

if(Hash(playerid))
{
eu as vrea sa fac ceva de genu'
if(Hash(playerid) == "")
{

sper ca intelegeti ce vreau sa spun...daca nu lasati reply

PS: la aceasta vreau sa fac :) la if(Hash(playerid...

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

2 answers to this question

Recommended Posts

Posted

Daca vrei sa cauti un string, in alt string.

http://wiki.sa-mp.com/wiki/Strfind

if(strfind(string1, string2, true/false) != -1)

true/false  se refera la case sensitivity (TeXt nu este acelasi cu text, intelegi tu).

Rate me :)

Posted

nu...nu asta vreau sa fac uitete putin :

Hash.png

vedeti ? sunt toate diferite (inafara de 2-3) si 2 casute sunt goale , la acele casute care sunt goale vreau sa verifice...daca nu scrie nimic sa primeasca kick playerul respectiv

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.