Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,777
» Latest member: Centnodes
» Forum threads: 2,374
» Forum posts: 12,337

Full Statistics

Online Users
There are currently 236 online users.
» 1 Member(s) | 233 Guest(s)
Bing, Google, swuffted

Latest Threads
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
4 hours ago
» Replies: 5
» Views: 85
fdjykiti
Forum: Releases
Last Post: todpis
Today, 05:57 AM
» Replies: 0
» Views: 22
sherfhreu
Forum: Pawn Scripting
Last Post: todpis
Today, 05:55 AM
» Replies: 0
» Views: 24
asgfhffh
Forum: Questions and Suggestions
Last Post: todpis
Today, 05:54 AM
» Replies: 0
» Views: 25
Awakeninga an old server.
Forum: Support
Last Post: Polecalex
Yesterday, 11:33 PM
» Replies: 1
» Views: 173
Recompiling for x86_64 or...
Forum: General Discussions
Last Post: Polecalex
Yesterday, 12:57 AM
» Replies: 0
» Views: 48
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: hiago.sucesso.hs
2025-12-16, 03:40 PM
» Replies: 1
» Views: 172
Is there a WebSocket plug...
Forum: General Discussions
Last Post: hiago.sucesso.hs
2025-12-16, 03:37 PM
» Replies: 0
» Views: 22
What would you start?
Forum: Life
Last Post: HELLHOUND
2025-12-14, 10:32 PM
» Replies: 5
» Views: 10,309
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-14, 02:06 PM
» Replies: 3
» Views: 423

 
  How to make pasword validation?
Posted by: CrypticSin - 2021-06-27, 02:48 PM - Forum: Pawn Scripting - Replies (2)

Hello i need help with?password validation, so if registered user types wrong password more than 3 times to login, it should kick the user?



PHP Code:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])

{

? ? if(
dialogid == REGISTER_DIALOG)

? ? {

? ? ? ? if(
response)

? ? ? ? {

? ? ? ? ? ? if(
strlen(inputtext) < || strlen(inputtext) > 24)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? 
SendClientMessage(playerid, -1"SERVER: Your password must be from 3-24 characters.");

? ? ? ? ? ? ? ? return 
ShowPlayerDialog(playeridREGISTER_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}Register Account""{FFFFFF}Please enter a password below to register an account:""Enter""Leave");

? ? ? ? ? ? }

? ? ? ? 

? ? ? ? ? ? 
bcrypt_hash(playerid"OnPlayerRegister"inputtext12);

? ? ? ? ? ? return 
1;

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? 
Kick(playerid);

? ? ? ? }

? ? }

? ? else if(
dialogid == LOGIN_DIALOG)

? ? {

? ? ? ? if(
response)

? ? ? ? {

? ? ? ? ? ? new 
query[256], field[64];

? ? ? ? ? ? 
format(querysizeof(query), "SELECT `PASS` FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE"DB_Escape(ReturnName(playerid)));

? ? ? ? ? ? 
database_result db_query(server_databasequery);

? ? ? ? ? ? ? if(
db_num_rows(database_result))

? ? ? ? ? ? {

? ? ? ? ? ? ? ? 
db_get_field_assoc(database_result"PASS"fieldsizeof(field));

? ? ? ? ? ? ? ? ? 
bcrypt_verify(playerid"OnPlayerLogin"inputtextfield);

? ? ? ? ? ? }

? ? ? ? ? ? return 
1;

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? 
Kick(playerid);

? ? ? ? }

? ? }

? ? return 
1;



Rainbow SCM()
Posted by: Awide - 2021-06-27, 09:46 AM - Forum: Programming - Replies (4)

jokes on you all haters i use SCM to split long messages?



*grabs popcorn*


  How to tell user if they are registered or not?
Posted by: CrypticSin - 2021-06-26, 11:14 AM - Forum: Pawn Scripting - Replies (1)

I've got a login and registration system which works using SQLlite.



Im trying to let the server tell the player whether they are registered or not?



So if they are already registered the server should say?"Welcome back 'player' You are already registered on the server please log in to continue." By returning the playername.



But if they are not registered it should prompt the user with "The 'username' is not registered on this server."



PHP Code:
public OnPlayerConnect(playerid)

{

SetPlayerCamera(playerid);

? ? 
SetPlayerScore(playerid0);

? ? 

? ? 
PlayerInfo[playerid][pKills] = 0;

PlayerInfo[playerid][pDeaths] = 0;



PlayerInfo[playerid][pLoggedIn] = false;



new 
query[128];

format(querysizeof(query), "SELECT `NAME` FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE"DB_Escape(ReturnName(playerid)));

database_result db_query(server_databasequery);

? if(
db_num_rows(database_result))

{

// Registered accounts see this login

ShowPlayerDialog(playeridLOGIN_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}TWDZS: Account Login""{FFFFFF}Please enter your password below to login to your account:""Enter""Leave"); 

}

else

{

ShowPlayerDialog(playeridREGISTER_DIALOGDIALOG_STYLE_PASSWORD"{FFFFFF}TWDZS: Register Account""Please enter a strong password to register your account""Register""Cancel");

}

return 
1;





  Fix delay in loading vehicles and objects when you leave from an interior
Posted by: Radical - 2021-06-25, 06:00 AM - Forum: Questions and Suggestions - No Replies

Well, when you leave from an interior (shops or?houses)?

It?take some time (5-8?seconds) to loading near vehicles and objects.


  How can I make players invincible?
Posted by: XDK6 - 2021-06-25, 03:38 AM - Forum: Pawn Scripting - Replies (3)

Hello guys! I'm a newbie scripter. I needd help how to make a playerid invincible.


  Pawn Coders - Discord server advertisement
Posted by: Connoisseur - 2021-06-24, 06:53 PM - Forum: General Discussions - Replies (2)

Pawn Coders is officially created by Portuguese/Spanish PAWN developers and is a place where people can request help, find useful resources, or even release one of their own. The idea came from one of the desires, helping. To wrap everything up, and save you from pointless numerous words, we are almost the same community, but now officially created in English that want to expand, and help the ones that need it.



Join now!

->?https://discord.com/invite/WJmygWFmtt



Current partner(s):

->?https://discord.gg/Dd8jKyQdq3


Information How are the laws out there?
Posted by: Otakeiro - 2021-06-24, 01:19 PM - Forum: Life - No Replies

Ultimamente nossos policiais est?o sofrendo correndo atr?s de L?zaro (400 soldados atr?s de 1 pessoa), eles cercaram a ?rea e ainda n?o pegaram o infeliz.



Ele estava na pris?o, tinha direito a uma "pequena sa?da" (algo como: voc? est? livre por um tempo, fuja)



Pior, eles desarmaram a sociedade (mas n?o os bandidos), n?o temos pris?o perp?tua e as leis que temos n?o o mant?m na pris?o.



L?zaro est? 16 dias no mato, mais de 400 policiais incluindo c?es de ca?a e boa tecnologia e quando pego pode pegar no m?ximo 4 anos de pris?o por assassinato em s?rie



Se isso acontecesse l?, a lei seria t?o frouxa quanto no Brasil?


  Dark forum style
Posted by: Awide - 2021-06-23, 09:53 PM - Forum: Questions and Suggestions - Replies (2)

Could you add a dark forum style? It could even be a default MyBB style as well, just to avoid mosquitoes raiding our monitor.


  Extended vehicle rotation
Posted by: Otakeiro - 2021-06-23, 08:01 PM - Forum: Pawn Scripting - Replies (2)

Solved...


Exclamation [AJUDA] Ajuda com c?digo
Posted by: Pedxz - 2021-06-23, 07:36 PM - Forum: Portuguese/Portugu?s - Replies (2)

Eu tenho esta linha de c?digos:

Code:
CMD:cv(playerid, params[])

{

if(aInfo[playerid][Admin] == 0) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Voc? n?o tem permiss?o!");



new sVeiculo[50], vehicleid, modeloid, cor1, cor2;



if(sscanf(params, "s[50]dd", sVeiculo, cor1, cor2)) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Uso correto: /CV [ Ve?culo ID / Nome ] [ Cor 1 ] [ Cor 2 ]");



if(cor1 < 0 || cor1 > 255 || cor2 < 0 || cor2 > 255) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Use IDs de cores de 0 a 255!");



if(IsNumeric(sVeiculo)) modeloid = strval(sVeiculo);

else modeloid = ReturnVehicleID(sVeiculo);



if(modeloid < 400 || modeloid > 611 || modeloid == -1) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Modelo de ve?culo inv?lido!");



new Float:pPos[4];



GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);

GetPlayerFacingAngle(playerid, pPos[3]);



vehicleid = CreateVehicle(modeloid, pPos[0], pPos[1], pPos[2], pPos[3], cor1, cor2, -1);



vCriado[vehicleid] = true;



LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));

SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));



PutPlayerInVehicle(playerid, vehicleid, 0);

PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);



format(gStr, sizeof(gStr), "[BPL] Ve?culo %s criado com sucesso! ( Modelo ID: %d - Ve?culo ID: %d )", GetVehicleModelNameEx(modeloid), modeloid, vehicleid);

? ? SendClientMessage(playerid, COLOR_VERDECMD, gStr);

? ? return 1;

}



CMD:criarveiculo(playerid, params[])

{

new sCMD[50];

format(sCMD, sizeof(sCMD), "/cv %s", params);



ExecutarComando(playerid, sCMD);

return 1;

}



// -------------------------------------------------------------------------------------------------------------- //



CMD:dv(playerid)

{

if(aInfo[playerid][Admin] == 0) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Voc? n?o tem permiss?o!");



if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Voc? n?o est? em um ve?culo!");



new vehicleid = GetPlayerVehicleID(playerid);



if(vCriado[vehicleid] == false) return SendClientMessage(playerid, COLOR_ERRO, "[ x ] Voc? s? pode destruir ve?culos criados!");



format(gStr, sizeof(gStr), "[BPL] Ve?culo %s exclu?do com sucesso! (ID %d)", GetVehicleModelName(vehicleid), vehicleid);

SendClientMessage(playerid, COLOR_VERDECMD, gStr);



sDestroyVehicle(vehicleid);

PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);



Streamer_Update(playerid);

return 1;

}





Por?m, ao compilar esses erros surgem e eu n?o entendo o porque:


Code:
C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(303) : warning 216: nested comment[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(312) : error 017: undefined symbol "Admin"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(320) : error 017: undefined symbol "IsNumeric"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(321) : error 017: undefined symbol "ReturnVehicleID"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(340) : error 017: undefined symbol "GetVehicleModelNameEx"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(350) : error 017: undefined symbol "ExecutarComando"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(358) : error 017: undefined symbol "Admin"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(366) : error 017: undefined symbol "GetVehicleModelName"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(369) : error 017: undefined symbol "sDestroyVehicle"[/align]



[align=left]C:\Users\Matheus\Desktop\BPL GAMES 2.0 - Copia\gamemodes\bpl.pwn(376) : warning 203: symbol is never used: "PlayerInfo"[/align]



[align=left]Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase[/align]







[align=left]8 Errors.[/align]



[align=left]







Poderiam me ajudar? E me dizer qual foi o causador dos erros?