Jump to content
  • 0

raport


asadaf123

Question

  • Erorile / Warnings:
  • C:\Users\vik\Desktop\GM.pwn(3366) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3371) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3376) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3381) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3386) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3391) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3396) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3401) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3406) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3411) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3416) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3421) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3426) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3431) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3436) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3441) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3446) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7463) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7463) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7464) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7464) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7465) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7465) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7466) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7466) : error 035: argument type mismatch (argument 2)
     
  • Codul sursa: 
  • public Update(playerid, type)
    {
    	if(IsPlayerConnected(playerid))
    	{
    		new var[356];
    		{
    			switch(type)
    			{
    //raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport
    				case pMoneyDx:
    				{
        				mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MoneyD`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMoneyD], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pRunnersx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Runners`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pRunners], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pPHealsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `PHeals`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHeals], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLGivenx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `LGiven`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLGiven], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pWKillsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `WKills`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pWKills], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pWDeathsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `WDeaths`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pWDeaths], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pMUsedx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MUsed`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMUsed], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pDDepositx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `DDeposit`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDDeposit], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pMDepositx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MDeposit`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMDeposit], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pNewsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `News`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pNews], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLivesx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Lives`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLives], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pOrdersx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Orders`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pOrders], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pContractsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Contracts`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pContracts], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pDConfiscatex:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `DConfiscate`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDConfiscate], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLConfiscatex:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `LConfiscate`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLConfiscate], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pTicketsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Tickets`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pTickets], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pArrestssx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Arrests`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pArrestss], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    
    
    
    
    
    if(gPlayerLogged[playerid] != 0)
    	{
    		OnPlayerDateUpdateX2(playerid);
    //raport
    		Update(playerid, pRunnersx);
    		Update(playerid, pArrestssx);
    		Update(playerid, pTicketsx);
    		Update(playerid, pPHealsx);
    		Update(playerid, pPHealsx);
    		Update(playerid, pWKillsx);
    		Update(playerid, pWDeathsx);
    		Update(playerid, pMUsedx);
    		Update(playerid, pDDepositx);
    		Update(playerid, pMDepositx);
    		Update(playerid, pNewsx);
    		Update(playerid, pLivesx);
    		Update(playerid, pOrdersx);
    		Update(playerid, pContractsx);
    		Update(playerid, pDConfiscatex);
    		Update(playerid, pLConfiscatex);
    		Update(playerid, pMoneyDx);

     

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Acum 7 ore, asadaf123 a spus:
  • Erorile / Warnings:
  • C:\Users\vik\Desktop\GM.pwn(3366) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3371) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3376) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3381) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3386) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3391) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3396) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3401) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3406) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3411) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3416) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3421) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3426) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3431) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3436) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3441) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(3446) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7463) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7463) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7464) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7464) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7465) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7465) : error 035: argument type mismatch (argument 2)
    C:\Users\vik\Desktop\GM.pwn(7466) : error 029: invalid expression, assumed zero
    C:\Users\vik\Desktop\GM.pwn(7466) : error 035: argument type mismatch (argument 2)
     
  • Codul sursa: 
  • public Update(playerid, type)
    {
    	if(IsPlayerConnected(playerid))
    	{
    		new var[356];
    		{
    			switch(type)
    			{
    //raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport raport
    				case pMoneyDx:
    				{
        				mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MoneyD`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMoneyD], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pRunnersx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Runners`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pRunners], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pPHealsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `PHeals`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pPHeals], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLGivenx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `LGiven`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLGiven], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pWKillsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `WKills`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pWKills], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pWDeathsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `WDeaths`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pWDeaths], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pMUsedx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MUsed`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMUsed], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pDDepositx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `DDeposit`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDDeposit], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pMDepositx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `MDeposit`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMDeposit], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pNewsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `News`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pNews], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLivesx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Lives`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLives], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pOrdersx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Orders`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pOrders], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pContractsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Contracts`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pContracts], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pDConfiscatex:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `DConfiscate`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDConfiscate], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pLConfiscatex:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `LConfiscate`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pLConfiscate], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pTicketsx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Tickets`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pTickets], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    				case pArrestssx:
    				{
    				    mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Arrests`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pArrestss], PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,var,"","");
    				}
    
    
    
    
    
    if(gPlayerLogged[playerid] != 0)
    	{
    		OnPlayerDateUpdateX2(playerid);
    //raport
    		Update(playerid, pRunnersx);
    		Update(playerid, pArrestssx);
    		Update(playerid, pTicketsx);
    		Update(playerid, pPHealsx);
    		Update(playerid, pPHealsx);
    		Update(playerid, pWKillsx);
    		Update(playerid, pWDeathsx);
    		Update(playerid, pMUsedx);
    		Update(playerid, pDDepositx);
    		Update(playerid, pMDepositx);
    		Update(playerid, pNewsx);
    		Update(playerid, pLivesx);
    		Update(playerid, pOrdersx);
    		Update(playerid, pContractsx);
    		Update(playerid, pDConfiscatex);
    		Update(playerid, pLConfiscatex);
    		Update(playerid, pMoneyDx);

     

Șterge acele linii unde scrie raport sau pune // sau /* la primul rand si */ la ultimul rând unde scrie raport

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.