C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(22) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(233) : error 017: undefined symbol "fexist" C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(233) : warning 215: expression has no effect C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(233) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(233) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrador\Meus documentos\SCRIPTANDO\Elite Brothers\pawno\include\dutils.inc(233) : fatal error 107: too many error messages on one line |
#include <Dini> #include <dudb> new Floatositionx; new Floatositiony; new Floatositionz; public OnPlayerConnect(playerid) { LoadStats(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { new Float; new Float:y; new Float:z; GetPlayerPos(playerid,x,y,z); positionx = x; positiony = y; positionz = z; if (!dini_Exists(FileStats(playerid))) { dini_Create(FileStats(playerid)); } SaveStats(playerid); return 1; } public OnPlayerSpawn(playerid) { SetPlayerPos(playerid,positionx,positiony,position z); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SetPlayerPos(playerid,1182.7733,-1323.6193,13.5785); positionx = 1182.7733; positiony = -1323.6193; positionz = 13.5785; return 1; } Player(playerid) { new player[MAX_PLAYER_NAME]; GetPlayerName(playerid, player, sizeof(player)); return player; } FileStats(playerid) { new a[256]; format(a, sizeof(a), "%s.ini",udb_encode(Player(playerid))); return a; } SaveStats(playerid) { dini_IntSet(FileStats(playerid), "PositionX", floatround(positionx)); dini_IntSet(FileStats(playerid), "PositionY", floatround(positiony)); dini_IntSet(FileStats(playerid), "PositionZ", floatround(positionz)); } LoadStats(playerid) { positionx = dini_Int(FileStats(playerid), "PositionX"); positiony = dini_Int(FileStats(playerid), "PositionY"); positionz = dini_Int(FileStats(playerid), "PositionZ"); } |
Coloque no topo #include <a_samp> |