Jump to content

[Problema] PlayerUpdate


xKnnTx

Recommended Posts

Salut , am un gamemode cu versiune mai vechie e pe Ysy, si vroiam sa fac altfel cum se updata playeri pe acest gamemode.
Specific ca vreau sa il fac intr-un include!

Ps: Nu sunt asa experimentat fara critici.

Errors: (Poza)(     https://imgur.com/a/laxW1     )
Code Errors:

-=-C:\Users\KnnT\Desktop\gm nou\pawno\include\myacc.inc(350) : error 029: invalid expression, assumed zero
-=-C:\Users\KnnT\Desktop\gm nou\pawno\include\myacc.inc(355) : error 029: invalid expression, assumed zero
-=-C:\Users\KnnT\Desktop\gm nou\pawno\include\myacc.inc(360) : error 029: invalid expression, assumed zero

Code(pawno):
public Update(playerid, type)
{
if(IsPlayerConnected(playerid))
{
gQuery[0] = (EOS);
{
switch(type)
             {
              case pLevelx:
              {
             format(gQuery, sizeof(gQuery), "UPDATE `players` SET `Level`='%d' WHERE `ID`='%d'", PlayerInfo[playerid][pLevel], 
              PlayerInfo[playerid] [pMysqlID]);           
              mysql_query(handle, gQuery);
               }
              case pAdminx:
               {
               format(gQuery, sizeof(gQuery), "UPDATE `players` SET `AdminLevel`='%d' WHERE `ID`='%d'", PlayerInfo[playerid][pAdmin],                                    PlayerInfo[playerid][pMysqlID]);
                mysql_query(handle, gQuery);
                }
                case pHelperx:
                 {
                format(gQuery, sizeof(gQuery), "UPDATE `players` SET `HelperLevel`='%d' WHERE `ID`='%d'", PlayerInfo[playerid][pHelper],                                   PlayerInfo[playerid][pMysqlID]);
                mysql_query(handle, gQuery);
                 }
               }
            }
       }
      return 1;
}

include(download): http://www.mediafire.com/file/hndspepa22xbuxz/myacc.inc
Multumesc! 

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.