errors (A lot) PLEASE HELP!!!
#4

OK but now i have new errors:
pawn Код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(99 -- 100) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(105) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(105) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(106) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(106) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(127) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(127) : error 004: function "HornA" is not implemented
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(129) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(129) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(130) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(130) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(137) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(137) : error 004: function "HornB" is not implemented
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(139) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(139) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(140) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(140) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(147) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(147) : error 004: function "STime" is not implemented
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(152) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(152) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(154) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(154) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(155) : warning 211: possibly unintended assignment
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(155) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(165) : warning 217: loose indentation
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(168) : warning 225: unreachable code
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(168) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(168) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(170) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(182) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(186) : error 017: undefined symbol "COLOR_RED"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(187 -- 188) : error 033: array must be indexed (variable "AllowedEnterTheBus")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(191) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(195) : error 017: undefined symbol "COLOR_RED"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(196 -- 197) : error 033: array must be indexed (variable "AllowedEnterTheBus")

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


26 Errors.
lines:
pawn Код:
AllowedEnterTheBus = 0; // -->line 99
if (AllowedEnterTheBus = 0) return 0; // -->line 105
if (AllowedEnterTheBus = 1) // -->line 106
public HornA(playerid) // -->line 127
if (AllowedEnterTheBus = 0) return 0; // -->line 129
if (AllowedEnterTheBus = 1) // -->line 130
public HornB(playerid) // -->line 137
if (AllowedEnterTheBus = 0) return 0; // -->line 139
if (AllowedEnterTheBus = 1) // -->line 140
public STime(playerid) // -->line 147
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) // -->line 152
if (AllowedEnterTheBus = 0) return 0; // -->line 154
if (AllowedEnterTheBus = 1 && newkeys == 16 && IsInBus[playerid] > 0) // -->line 155
return 1; // -->line 165
public OnPlayerCommandText(playerid, cmdtext[]) // -->line 168
if (strcmp("/gotobus", cmdtext, true, 8) == 0) // -->line 170
if (strcmp("/allowedbus", cmdtext, true, 8) == 0) // -->line 182
SendClientMessageToAll(playerid, COLOR_RED, "You have able the option to enter the bus"); //-->line 186
AllowedEnterTheBus = 0 //--> line 187
 } //--> line 188
if (strcmp("/unallowedbus", cmdtext, true, 8) == 0) //--> line 191
SendClientMessageToAll(playerid, COLOR_RED, "You have disable the option to enter the bus"); //--> line 195
AllowedEnterTheBus = 0 //--> line 196
modify:
lined 186+195 has been fixed.new errors:

pawn Код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(189) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(194) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(198) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\Bus.pwn(199 -- 200) : error 033: array must be indexed (variable "AllowedEnterTheBus"

lines:
pawn Код:
SendClientMessageToAll(playerid, COLOR_RED, "You have able the option to enter the bus"); //--> line 189
if (strcmp("/unallowedbus", cmdtext, true, 8) == 0) //--> line 194
SendClientMessageToAll(playerid, COLOR_RED, "You have disable the option to enter the bus"); //--> line 198
AllowedEnterTheBus = 0
}//--> lines 199-200
please help me fix those errors
Reply


Messages In This Thread
errors (A lot) PLEASE HELP!!! - by nuriel8833 - 07.08.2009, 17:07
Re: errors (A lot) PLEASE HELP!!! - by nuriel8833 - 08.08.2009, 11:55
Re: errors (A lot) PLEASE HELP!!! - by Dj_maryo1993 - 08.08.2009, 12:24
Re: errors (A lot) PLEASE HELP!!! - by nuriel8833 - 08.08.2009, 12:36
Re: errors (A lot) PLEASE HELP!!! - by dice7 - 08.08.2009, 12:46
Re: errors (A lot) PLEASE HELP!!! - by nuriel8833 - 08.08.2009, 12:53
Re: errors (A lot) PLEASE HELP!!! - by dice7 - 08.08.2009, 14:01
Re: errors (A lot) PLEASE HELP!!! - by nuriel8833 - 08.08.2009, 14:33
Re: errors (A lot) PLEASE HELP!!! - by speedruntrainer - 08.08.2009, 14:42
Re: errors (A lot) PLEASE HELP!!! - by Sergei - 08.08.2009, 14:48

Forum Jump:


Users browsing this thread: 2 Guest(s)