05.08.2013, 13:33
Galera, fiz uma especie de um sistema para salvar a skin do player, mas nao sei porque nao compila.
Deem uma olhada:
E aqui o erro:
Por favor, me ajudem.
Deem uma olhada:
Код:
#include <a_samp> #include <dini> //Defines #define SKINS Skins/%s.ini SalvarSkin(playerid,skinid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new String[90]; format(String, sizeof(String), SKINS, name); dini_IntSet(String,"Skin",GetPlayerSkin(playerid); return 1; } CarregarSkin(playerid,skinid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new String[90] format(String, sizeof(String), CONTAS, Nome); SetPlayerSkin(playerid, dini_Int(String,"Skin")); return 1; } public OnPlayerSpawn(playerid) { CarregarSkin(playerid,skinid); return 1; } public OnPlayerDisconnect(playerid, reason) { SalvarSkin(playerid,skinid)); return 1; } public OnGameModeExit() { for(new i=0; i<MAX_PLAYERS; i++) SalvarSkin(i); return 1; }
Код:
C:\Users\Usuario\Desktop\salvandoskin.pwn(12) : error 017: undefined symbol "Skins" C:\Users\Usuario\Desktop\salvandoskin.pwn(12) : error 017: undefined symbol "s" C:\Users\Usuario\Desktop\salvandoskin.pwn(12) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\salvandoskin.pwn(12) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.