SA-MP Forums Archive
Need some help - 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: Need some help (/showthread.php?tid=488992)



Need some help - FreAkeD - 20.01.2014

Hello,

I need some help with my script, I get some errors which are confusing.

Here it is:


Код HTML:
C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(291) : error 035: argument type mismatch (argument 1)

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(345) : warning 219: local variable "text" shadows a variable at a preceding level

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(505) : error 035: argument type mismatch (argument 1)

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(622) : error 017: undefined symbol "TextdrawSelectionRoomDM"

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(622) : warning 215: expression has no effect

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(622) : error 001: expected token: ";", but found "]"

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(622) : error 029: invalid expression, assumed zero

C:\Users\Adam\Desktop\Freeroam\gamemodes\es-fr.pwn(622) : fatal error 107: too many error messages on one line

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


6 Errors.
What are on those lines?

Код HTML:
291: mysql_query(mysql_string);

345: public OnPlayerText(playerid, text[])

505: mysql_query(mysql_string);

622: if(clickedid == TextdrawSelectionRoomDM[8])
Help would be appreciated!

Thanks!


Re: Need some help - Ari - 20.01.2014

Line 291: The version of MySQL that you're using has changed the function name.

Line 245: You've defined 'text' more than one, rename it or remove the duplicate.

Line 505: Same as 291.

Line 622: You need to define TextdrawSelectionRoomDM


Is this code stolen?


Re: Need some help - FreAkeD - 20.01.2014

Quote:
Originally Posted by Ari
Посмотреть сообщение
Line 291: The version of MySQL that you're using has changed the function name.

Line 245: You've defined 'text' more than one, rename it or remove the duplicate.

Line 505: Same as 291.

Line 622: You need to define TextdrawSelectionRoomDM


Is this code stolen?
Thanks for the help. I'll try it out, and let you know if these work.

NO, this code is not stolen. I have my own scripter for my server.