Jump to content

[REZOLVAT] Problemă compilare gm L2P


Khenwise
 Share

Recommended Posts

Username: Khenwise
Problema întălnită: nu se compilează gamemode-ul din cauza unor 4 erori, las mai jos
Detalii despre problemă: primesc erorile 

\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : warning 215: expression has no effect
\pawno\include\systems.inc(400) : error 001: expected token: ";", but found ")"
\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : fatal error 107: too many error messages on one line

linia 400:

case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'",GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);


Ce ai încercat să faci înainte să postezi?: am încercat să pun asta dar degeaba

case pCashx: format(var, sizeof(var), "UPDATE `users` SET `Money` = '%d' WHERE `ID` = '%d'", GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);


Cod sursă (recomandat pastebin.com) : https://pastebin.com/y0xUdDvY
Alte detalii: atât

Link to comment
Share on other sites

On 8/23/2019 at 5:22 PM, Khenwise said:

Username: Khenwise
Problema întălnită: nu se compilează gamemode-ul din cauza unor 4 erori, las mai jos
Detalii despre problemă: primesc erorile 


\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : warning 215: expression has no effect
\pawno\include\systems.inc(400) : error 001: expected token: ";", but found ")"
\pawno\include\systems.inc(400) : error 029: invalid expression, assumed zero
\pawno\include\systems.inc(400) : fatal error 107: too many error messages on one line

linia 400:


case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'",GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);


Ce ai încercat să faci înainte să postezi?: am încercat să pun asta dar degeaba


case pCashx: format(var, sizeof(var), "UPDATE `users` SET `Money` = '%d' WHERE `ID` = '%d'", GetPlayerCash(playerid), PlayerInfo[playerid][pSQLID]);


Cod sursă (recomandat pastebin.com) : https://pastebin.com/y0xUdDvY
Alte detalii: atât

 

Ești sigur că ai extras eroarea bine? Am o vagă impresie că ce ne-ai dat tu este din gm, iar eroarea face parte din includes/system.inc.

Link to comment
Share on other sites

Salut

Incearca asa:

case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'", PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pSQLID]);
	

Sau asa:

case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'",GetPlayerCash(playerid), playerid);
	

Edited by RobyBVG
Link to comment
Share on other sites

14 hours ago, RobyBVG said:

Salut

Incearca asa:


case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'", PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pSQLID]);
	

Sau asa:

 


case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'",GetPlayerCash(playerid), playerid);
	

 

A doua nu e bună, o să dea update  altui utilizator.

Link to comment
Share on other sites

Am schimbat gm-ul pentru că nu i-am dat de cap.

E tot un L2P (doar că e o versiune de la un prieten) 

și la compilare primesc astea

Execute Compiler\include\YSI\y_debug.inc(395) : error 036: empty statement
Execute Compiler\include\YSI\y_debug.inc(395) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(623) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(623) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(644) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(644) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(677) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(677) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(778) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(778) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(803) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(803) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(867) : error 036: empty statement
Execute Compiler\include\sscanf2.inc(336) : warning 218: old style prototypes used with optional semicolumns
Execute Compiler\include\sscanf2.inc(396) : warning 218: old style prototypes used with optional semicolumns
Execute Compiler\include\YSI\y_amx.inc(393) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(393) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(437) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(522) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(522) : error 036: empty statement
include\YSI\y_amx.inc(658) : error 036: empty statement
include\YSI\y_amx.inc(658) : error 036: empty statement
include\YSI\y_amx.inc(832) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(832) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(958) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(958) : error 036: empty statement
 
Compilation aborted.
 
Pawn compiler 3.10.8            Copyright (c) 1997-2006, ITB CompuPhase
 
 
26 Errors.
[Finished in 2.8s]

El a compilare nu primește erorile astea.. 

o soluție? de schimbat am schimbat YSI-ul și n-a mers

 

 

Link to comment
Share on other sites

2 hours ago, Khenwise said:

Am schimbat gm-ul pentru că nu i-am dat de cap.

E tot un L2P (doar că e o versiune de la un prieten) 

și la compilare primesc astea


Execute Compiler\include\YSI\y_debug.inc(395) : error 036: empty statement
Execute Compiler\include\YSI\y_debug.inc(395) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(623) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(623) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(644) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(644) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(677) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(677) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(778) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(778) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(803) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(803) : error 036: empty statement
Execute Compiler\include\YSI\y_iterate.inc(867) : error 036: empty statement
Execute Compiler\include\sscanf2.inc(336) : warning 218: old style prototypes used with optional semicolumns
Execute Compiler\include\sscanf2.inc(396) : warning 218: old style prototypes used with optional semicolumns
Execute Compiler\include\YSI\y_amx.inc(393) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(393) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(437) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(522) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(522) : error 036: empty statement
include\YSI\y_amx.inc(658) : error 036: empty statement
include\YSI\y_amx.inc(658) : error 036: empty statement
include\YSI\y_amx.inc(832) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(832) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(958) : error 036: empty statement
Execute Compiler\include\YSI\y_amx.inc(958) : error 036: empty statement
 
Compilation aborted.
 
Pawn compiler 3.10.8            Copyright (c) 1997-2006, ITB CompuPhase
 
 
26 Errors.
[Finished in 2.8s]

El a compilare nu primește erorile astea.. 

o soluție? de schimbat am schimbat YSI-ul și n-a mers

 

 

Spune-i prietenului tau sa iti dea tot folderul 'pawno', si compileaza acest gamemode cu pawno.exe din acel folder.

 

Si daca inca mai ai si versiunea ta, nu stiu sigur daca ai variabila pID, incearca si asa:

case pCashx: format(var, sizeof(var), "UPDATE users SET Money='%d' WHERE ID='%d'", PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pID]);
	

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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