Jump to content

Am o problemă...


UnFan

Recommended Posts

Salut.În primul rând, în baza de date am o tabelă cu numele : GiftPoints

am adăugat la pInfo : pGiftPoints, iar când vreau să creez o comandă

CMD:testare(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");

new coordsstring[256];
new test = PlayerInfo[playerid][pGiftPoints];
format(coordsstring, sizeof(coordsstring),"You Have %s", test);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		
return 1;
}

5l2Wwq2.png

 

Un mic ajutor?

Link to comment
Share on other sites

Acum 8 minute, Banditul a spus:

in primul rand e integer nu e string deci trebuie sa pui 

You Have %i

In al doilea rand, ti se incarca din baza de date? Sau ai pus sa se incarce din baza de date?

Din baza de date

 

EDIT:

 

Nope la fel arată

 

You have 

dar nu apare valoarea din baza de date

Edited by UnFan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.