SA-MP Forums Archive
Help with dini please - 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: Help with dini please (/showthread.php?tid=234615)



Help with dini please - BurgessGaming - 04.03.2011

me yet again

i just tried coding dini and i got these error, im stumpped

pawn Код:
(331) error 017: undefined symbol "cmd"
(337) error 001: expected token: ";", but found "-identifier-"
(337) error 017: undefined symbol "dini_get"
(337) error 033: array must be indexed (variable "readfile")
(377) fatal error 107: too many error messages on one line

LINES:
(331): if(strcmp(cmd, "/savetofile", true) == 0) {
(337):readfile = dini_get("File.txt", playername);



Re: Help with dini please - ilikenuts - 04.03.2011

hi, Use This For The Command:
Код:
if (strcmp("/savetofile", cmdtext, true, 10) == 0 {
readfile = dini_get("file.txt", playername);



Re: Help with dini please - BurgessGaming - 04.03.2011

now i get these...

pawn Код:
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\Playrole.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\Playrole.pwn(339) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\Playrole.pwn(339) : error 017: undefined symbol "dini_get"
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\Playrole.pwn(339) : error 033: array must be indexed (variable "readfile")
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\Playrole.pwn(339) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.