C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(41) : error 001: expected token: "-identifier-", but found "-string-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(127) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(138) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(371) : error 001: expected token: "-string end-", but found "-identifier-"
enum Info { IP[16], Password[129], Admin, Score, Money, Deaths, Kills, Float:PosX, Float:PosY, Float:PosZ, Float:PosA, IsRegistered, IsOnDutyRCPD, Skin // Line 41 }
if(fexist(UserPath(playerid))) { GetPlayerPos(playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ]); GetPlayerFacingAngle(playerid, PlayerInfo[playerid][PosA]); file_Open(UserPath(playerid)); file_SetVal("Admin", PlayerInfo[playerid][Admin]); file_SetVal("Score", PlayerInfo[playerid][Score]); file_SetVal("Money", PlayerInfo[playerid][Money]); file_SetVal("Deaths", PlayerInfo[playerid][Deaths]); file_SetVal("Kills", PlayerInfo[playerid][Kills]); file_SetFloat("PosX", PlayerInfo[playerid][PosX]); file_SetFloat("PosY", PlayerInfo[playerid][PosY]); file_SetFloat("PosZ", PlayerInfo[playerid][PosZ]); file_SetFloat("PosA", PlayerInfo[playerid][PosA]); file_SetVal("IsRegistered", PlayerInfo[playerid][IsRegistered]); file_SetVal("IsOnDutyRCPD", PlayerInfo[playerid][IsOnDutyRCPD]); file_SetVal("Skin", PlayerInfo[playerid][Skin]); // Line 127 file_Save(UserPath(playerid)); file_Close(); }
public OnPlayerSpawn(playerid) { SetPlayerPos(playerid,PlayerInfo[playerid][PosX],PlayerInfo[playerid][PosY],PlayerInfo[playerid][PosZ]); SetPlayerFacingAngle(playerid,PlayerInfo[playerid][PosA]); SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]); // Line 138 return 1; }
if(!strcmp(HashPass, PlayerInfo[playerid][Password])) { file_Open(UserPath(playerid)); // open his file PlayerInfo[playerid][Admin] = file_GetVal("Admin"); PlayerInfo[playerid][Score] = file_GetVal("Score"); PlayerInfo[playerid][Money] = file_GetVal("Money"); PlayerInfo[playerid][Deaths] = file_GetVal("Deaths"); PlayerInfo[playerid][Kills] = file_GetVal("Kills"); PlayerInfo[playerid][PosX] = file_GetFloat("PosX"); PlayerInfo[playerid][PosY] = file_GetFloat("PosY"); PlayerInfo[playerid][PosZ] = file_GetFloat("PosZ"); PlayerInfo[playerid][PosA] = file_GetFloat("PosA"); PlayerInfo[playerid][IsRegistered] = file_GetVal("IsRegistered"); PlayerInfo[playerid][IsOnDutyRCPD] = file_GetVal("IsOnDutyRCPD"); PlayerInfo[playerid][Skin] = file_GetVal("Skin"); // Line 371 file_Close(); }
enum Info
{
IP[16],
Password[129],
Admin,
Score,
Money,
Deaths,
Kills,
Skin.
Float:PosX,
Float:PosY,
Float:PosZ,
Float:PosA,
IsRegistered,
IsOnDutyRCPD
}
C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(35) : error 001: expected token: "-identifier-", but found "-string-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(113) : error 017: undefined symbol "PosX" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(114) : error 017: undefined symbol "PosA" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(121) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(122) : error 017: undefined symbol "PosX" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(123) : error 017: undefined symbol "PosY" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(124) : error 017: undefined symbol "PosZ" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(125) : error 017: undefined symbol "PosA" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(126) : error 017: undefined symbol "IsRegistered" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(127) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(136) : error 017: undefined symbol "PosX" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(137) : error 017: undefined symbol "PosA" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(138) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(365) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(366) : error 017: undefined symbol "PosX" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(366) : warning 213: tag mismatch C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(367) : error 017: undefined symbol "PosY" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(367) : warning 213: tag mismatch C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(368) : error 017: undefined symbol "PosZ" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(368) : warning 213: tag mismatch C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(369) : error 017: undefined symbol "PosA" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(369) : warning 213: tag mismatch C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(370) : error 017: undefined symbol "IsRegistered" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(371) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(388) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(390) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(396) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(405) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(418) : error 017: undefined symbol "IsOnDutyRCPD" C:\Users\Hans\Desktop\Server\gamemodes\location.pwn(430) : error 017: undefined symbol "IsOnDutyRCPD"
enum Info
{
IP[16],
Password[129],
Admin,
Score,
Money,
Deaths,
Kills,
Skin.
Float:PosX,
Float:PosY,
Float:PosZ,
Float:PosA,
IsRegistered,
IsOnDutyRCPD,
Skin
};
Try this then:
pawn Код:
|
enum Info
{
IP[16],
Password[129],
Admin,
Score,
Money,
Deaths,
Kills,
Skin,
Float:PosX,
Float:PosY,
Float:PosZ,
Float:PosA,
IsRegistered,
IsOnDutyRCPD
}