SA-MP Forums Archive
Switch Failures - 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: Switch Failures (/showthread.php?tid=93234)



Switch Failures - ilikepie2221 - 24.08.2009

http://pawn.pastebin.com/d44d91984

Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(5) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 027: invalid character constant
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 017: undefined symbol "ext"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 014: invalid statement; not in switch
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : warning 215: expression has no effect
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 017: undefined symbol "one"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : fatal error 107: too many error messages on one line
Any ideas?


Re: Switch Failures - JaTochNietDan - 24.08.2009

' ' quote types are used to define a character rather than a string, and I'm not sure you can use a string in switch, however it would be with " " for a string. I'm not very sure, I've never used switch like that.


Re: Switch Failures - ilikepie2221 - 24.08.2009

http://pawn.pastebin.com/d1c4ca8b2

Gave me

Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(5) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(7) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(37) : error 001: expected token: "-string end-", but found "-identifier-"
And no this is not the whole script.


Re: Switch Failures - snoob - 24.08.2009

hi try this
http://pawn.pastebin.com/m57b9dd51
see ya