Gamemode Error - 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)
+--- Thread: Gamemode Error (
/showthread.php?tid=405992)
Gamemode Error - Stefan_Merce - 08.01.2013
Hi, I get this when i try to complie my gamemode
C:\Users\\Desktop\Script\gamemodes\new.pwn(795) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\Script\gamemodes\new.pwn(795) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\Script\gamemodes\new.pwn(795) : warning 215: expression has no effect
C:\Users\\Desktop\Script\gamemodes\new.pwn(795) : error 001: expected token: ";", but found "-string-"
C:\Users\\Desktop\Script\gamemodes\new.pwn(795) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Gamemode Error -
Konstantinos - 08.01.2013
Show us lines 790 to 800, please.
Re: Gamemode Error - Stefan_Merce - 08.01.2013
main(){}
public OnGameModeInit()
{
mysql_debug(0);
mysql_connect(mysql_host,mysql_user,mysql_database ,mysql_password);
LoadObjects();
LoadOwnedVehicles();
LoadVehicles();
LoadHouses();
SetTimer("StripUpdate", UpdateTime, true);
Re: Gamemode Error -
Konstantinos - 08.01.2013
FRom this line?
pawn Код:
mysql_connect(mysql_host,mysql_user,mysql_database ,mysql_password);
Make sure the rest you've defined are correct. Let's say
pawn Код:
#define mysql_password "Oops_I_Forgot_To_Close_This!
it's missing the last ", make sure they are all correct.
Re: Gamemode Error -
RedCrossER - 08.01.2013
Make sure you defined all values