SA-MP Forums Archive
Hmm? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hmm? (/showthread.php?tid=177577)



Hmm? - Luis- - 18.09.2010

Код:
C:\Users\BooNii3\Los Santos Role Play Forums - Server\Los Santos Role Play - Server\gamemodes\Test1.pwn(263) : error 025: function heading differs from prototype
What does that mean?

pawn Код:
public OnQueryFinish(playerid, query[], resultid, extraid, connectionHandle) {
     if(resultid == MySQL_LOAD_ACCOUNT ) {
          mysql_store_result();
          new MySQLData[128], MyStats[3];
          mysql_fetch_row_format(MySQLData, "|");
          sscanf(MySQLData, "p<|>iii", MyStats[0], MyStats[1], MyStats[2]);
          format(MySQLData, 128, "This account stores %i kills & %i deaths G_G", MyStats[0], MyStats[1]);
          print(MySQLData);
          GivePlayerMoney(playerid, MyStats[2]);
          mysql_free_result();
     }
     return 1;
}



Re: Hmm? - DeathOnaStick - 18.09.2010

We need to see the "forward OnQueryFinish();" line to help you.
The mistake should be there.


Re: Hmm? - Conroy - 18.09.2010

Make sure your forward is:

forward OnQueryFinish(playerid, query[], resultid, extraid, connectionHandle);