10.11.2012, 01:51
I'm trying to create a fishing system, but i get errors, and i've barely started.
errors:
Код:
#include <a_samp> #if defined FILTERSCRIPT #include <a_samp> #include <ZCMD> #include <sscanf2> new HasRod[MAX_PLAYERS], HasBait[MAX_PLAYERS], Fishing[MAX_PLAYERS], Fish[MAX_PLAYERS][5]; #define WHITE 0xFFFFFFAA #define RED 0xAA3333AA forward FishCatchTimer(playerid); #endif public OnPlayerConnect(playerid) { Fishing[playerid] = 0; HasBait[playerid] = 0; HasRod[playerid] = 0; Fish[playerid][1] = 0; Fish[playerid][2] = 0; Fish[playerid][3] = 0; Fish[playerid][4] = 0; return 1; }
Код:
C:\Users\Josh\Desktop\FCSLRP\filterscripts\Fishing.pwn(20) : error 017: undefined symbol "Fishing" C:\Users\Josh\Desktop\FCSLRP\filterscripts\Fishing.pwn(20) : warning 215: expression has no effect C:\Users\Josh\Desktop\FCSLRP\filterscripts\Fishing.pwn(20) : error 001: expected token: ";", but found "]" C:\Users\Josh\Desktop\FCSLRP\filterscripts\Fishing.pwn(20) : error 029: invalid expression, assumed zero C:\Users\Josh\Desktop\FCSLRP\filterscripts\Fishing.pwn(20) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.