SA-MP Forums Archive
Basic Roleplay Script [MYSQL] - 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: Basic Roleplay Script [MYSQL] (/showthread.php?tid=653157)



Basic Roleplay Script [MYSQL] - Kevy - 27.04.2018

Well.. I have been recently learning coding, trying out this current script:
https://sampforum.blast.hk/showthread.php?tid=641235

However, since I have had so many errors with foreach.. I decided to replace them by using:
for(new i = 0; i < MAX_PLAYERS; i++)

However...
Код:
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(1503) : error 017: undefined symbol "NetStats_GetConnectedTime"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(3658) : error 017: undefined symbol "IsValidVehicle"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4011) : error 017: undefined symbol "GetVehiclePoolSize"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4020) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4286) : error 025: function heading differs from prototype
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4340) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4342) : error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4364) : error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4462) : error 001: expected token: ";", but found "-string-"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4462) : warning 215: expression has no effect
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4462) : error 001: expected token: ";", but found ")"
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4462) : error 029: invalid expression, assumed zero
C:\Scripts\Learnwise\51\Base-Roleplay-Script-master\gamemodes\rev 1.5.10.5.pwn(4462) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Any help?


Script on pastebin:
--uploading--


Re: Basic Roleplay Script [MYSQL] - 1sbedx - 27.04.2018

You're using outdated includes.

https://pastebin.com/JjM3xXvV - a_samp
https://pastebin.com/1n4YKEBi - a_mysql
https://pastebin.com/4ByhQStp - foreach
https://pastebin.com/Zs9YxwuK - evi


Re: Basic Roleplay Script [MYSQL] - Kevy - 27.04.2018

I just updated my evi and I got the latest a_mysql according to the original poster of the script. mysql rev blah - 6