Jump to content

Problema UpdateVar


ImGunter

Recommended Posts

D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : warning 217: loose indentation
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : error 012: invalid function call, not a valid address
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : warning 215: expression has no effect
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : warning 215: expression has no effect
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : warning 215: expression has no effect
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : error 001: expected token: ";", but found ")"
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : error 029: invalid expression, assumed zero
D:\Grand.Theft.Auto.San.Andreas - SKIDROW\Gamemode AngelZone Edit By Razvan\gamemodes\B4P.pwn(1145) : fatal error 107: too many error messages on one line

Imi da erorile acestea, linia 1145 este: 
    playerVariables[ playerid ][ pQuest1 ] = questnumberone; playerVariables[ playerid ][ pQuestCompleted1 ] = getDailyQuestProgress( questnumberone ); playerVariables[ playerid ][ pQuestProgress1 ] = 0;
    playerVariables[ playerid ][ pQuest2 ] = questnumbertwo; playerVariables[ playerid ][ pQuestCompleted2 ] = getDailyQuestProgress( questnumbertwo ); playerVariables[ playerid ][ pQuestProgress2 ] = 0;
    playerVariables[ playerid ][ pQuest3 ] = questnumberthree; playerVariables[ playerid ][ pQuestCompleted3 ] = getDailyQuestProgress( questnumberthree ); playerVariables[ playerid ][ pQuestProgress3 ] = 0;
    UpdateVar(playerid, "Quest1", questnumberone); UpdateVar(playerid, "QuestCompleted1", playerVariables[ playerid ][ pQuestCompleted1 ]); UpdateVar(playerid, "QuestProgress1", 0;
    UpdateVar(playerid, "Quest2", questnumbertwo); UpdateVar(playerid, "QuestCompleted2", playerVariables[ playerid ][ pQuestCompleted2 ]); UpdateVar(playerid, "QuestProgress2", 0;
    UpdateVar(playerid, "Quest3", questnumberthree); UpdateVar(playerid, "QuestCompleted3", playerVariables[ playerid ][ pQuestCompleted3 ]); UpdateVar(playerid, "QuestProgress3", 0;

Link to comment
Share on other sites

  • 2 weeks later...

in loc de playerVariables pune PlayerInfo

 

si adauga asta in gm daca nu o ai

 

function UpdateVar( playerid, varname[ ], varnameingame ) {
	if(playerid == INVALID_PLAYER_ID) return 1;
	gString[ 0 ] = (EOS);
	mysql_format( SQL, gString, sizeof gString, "UPDATE `users` SET `%s` = '%d' WHERE `ID` = '%d'", varname, varnameingame, PlayerInfo[ playerid ][ pSQLID ] );
	mysql_tquery( SQL, gString, "", "" );
	return 1;
}

 

Edited by DarkWind

Ko62bp8.png

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.