21.05.2016, 18:34
(
Последний раз редактировалось BiosMarcel; 21.05.2016 в 19:11.
)
FIRST OF ALL: The 26 errors that i get are not within my command (but they are caused by the command, they are all missing methods(they arent missing tho)).So i would assume that this is a bracket error but i dont see any failed brackets within the command, when i delete the command everything compiles fine, so wth is going on?
I can not compile "my script" when i have this command inside of it:
since you are saying u need the useless errors, here:
they are line 24xx-34xx and my code is at 332xx-333xx, TOTALLY DIFFRENT!!!!!!!!!
When the command is in it tells me that there are tons of missing functions, even tho they are not missing.
I checked the brackets and everything seems to be fine, i guess.
Can anyone find mistakes?
I can not compile "my script" when i have this command inside of it:
since you are saying u need the useless errors, here:
Код:
C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2439) : error 017: undefined symbol "sscanf" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2464) : error 017: undefined symbol "MessageToAdmins" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2505) : error 017: undefined symbol "PlayerName2" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2507) : error 017: undefined symbol "SaveToFile" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2514) : error 017: undefined symbol "TimeStamp" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2517) : error 017: undefined symbol "TimeStamp" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2519) : error 017: undefined symbol "TimeStamp" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2522) : error 017: undefined symbol "PlayerName2" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2524) : error 017: undefined symbol "SaveToFile" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(2678) : error 017: undefined symbol "UpdateConfig" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3112) : error 017: undefined symbol "CountBusinesses" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3113) : error 017: undefined symbol "LoadBusinesses" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3119) : error 017: undefined symbol "CountVehicles" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3120) : error 017: undefined symbol "LoadVehicles" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3123) : error 017: undefined symbol "ModVehicle" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3151) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3152) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3153) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3154) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3155) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3156) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3157) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3158) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3159) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3160) : error 017: undefined symbol "AddHouse" C:\Users\marce\Desktop\RBCluBxB v6.5\Gamemodes\SATDM_v9.pwn(3161) : error 017: undefined symbol "AddHouse"
PHP код:
CMD:ostats(playerid,params[])
{
new name[32];
if(sscanf(params, "s", name)) return SendClientMessage(playerid, red, "That user isn't registered.");
new playerFile[100];
format(playerFile,256,"/ladmin/users/%s.sav",udb_encode(name));
if(fexist(playerFile))
{
new string[500];
new house[50];
new houseID = dini_Int(playerFile, "Houseid");
new houseCost = dini_Int(house, "Cost");
new houseCostStr{10];
new houseIDStr[6];
switch(houseID)
{
case -255:
{
houseIDStr = "N/A";
houseCostStr = "N/A";
}
case default:
{
format(houseIDStr, 6 ,"%d", houseID);
format(houseCostStr, 10, "%d", houseCost);
}
}
new bizID = dini_Int(playerFile, "bowned");
new bizCost = dini_Int(house, "Cost");
new bizCostStr{10];
new bizIDStr[6];
switch(bizID)
{
case 0, -255:
{
bizIDStrIDStr = "N/A";
houseCostStr = "N/A";
}
case default:
{
format(bizIDStr, 6,"%d", bizID);
format(bizCostStr, 10, "%d", bizCost);
}
}
format(house,50,"SATDM/Houses/house%d",dini_Int(playerFile, "Houseid"));
format(string,sizeof(string),"|- Account Details -|\n\n {FFFFFF}Name: %s\nLast IP: %s\nRegistration Date: %s\nLast Time Online: %s\n\n|- User Statistics -|\n\nKills: %d ||Deaths: %d\nAdmin Level: %d ||Weed: %d\nCash: %d || Bank: %d\n\n|- House & Business -|\n\nHouse ID: %d || Cost: %d\nBusiness ID: %d || Cost %d",
name,dini_Get(playerFile, "ip"),dini_Get(playerFile, "RegisteredDate"), dini_Get(playerFile, "LastOn"),dini_Int(playerFile, "kills"), dini_Int(playerFile, "deaths"), dini_Int(playerFile, "level"),dini_Int(playerFile,"weed"), dini_Int(playerFile, "money"), dini_Int(playerFile, "Bank"),houseIDStr,houseCostStr, bizIDStr, bizCostStr);
ShowPlayerDialog(playerid,OFFLINE_STATS,DIALOG_STYLE_MSGBOX, "{FFFF00}Offline Stats", string, "OK", "");
}
else
{
SendClientMessage(playerid, red, "That player doesn't exist.");
}
return 1;
}
I checked the brackets and everything seems to be fine, i guess.
Can anyone find mistakes?