Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

Command doesn't work.

Hi, I have been trying to save a variable to mysql database, with this command:

ID
d6ouivfilegovhg7bjtg
author
ryder-sixz's avatar

Ryder Sixz

@ryder-sixz


View profile
Copy link
  Report member
started
Dec 3, 2020
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
Command doesn't work.
ryder-sixz's avatar

Ryder Sixz

@ryder-sixz


View profile
Copy link
  Report member
• 5y
Pawn Scripting

Command doesn't work.

pawn

Hi, I have been trying to save a variable to mysql database, with this command:



CMD:ded(playerid, params[])

{

? ? new Query[256];

? ? Fondos[FondosFC] = 1000;

? ? format(Query, 200, "UPDATE `variableglobal` SET `FondosC`='%d'", Fondos[FondosFC]);

? ? mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid);

? ? return 1;

}





The problem is that when I check in the phpmyadmin, the variable is at 0, that is, it was not saved with the command. Does anyone know what is wrong with the code? thanks!

0 likes0 replies

    Please sign up or log in to reply