TorTik59
Новичок
Здрасте, проблема такая:
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 017: undefined symbol "string"
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 017: undefined symbol "string"
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : fatal error 107: too many error messages on one line
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 017: undefined symbol "string"
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 017: undefined symbol "string"
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\GTA-SAMP\TorTik-RP\gamemodes\RolePlay.pwn(5456) : fatal error 107: too many error messages on one line
PHP:
5456: format(string, sizeof(string), "- Íàðêîòèêè [%a/1000]\n- Ìàòåðèàëû [%b/5000]\n- Êëþ÷è îò êàìåðû [%c/50]\n- Desert Eagle [%d/500]\n- Shotgun [%e/350]\n- M4A1 [%f/1500]\n- SMG [%g/1500]\n- Silenced Pistol [%h/250]\n- AK-47 [%i/1000]\n- Rifle [%j/200]",sc1,sc2,sc3,sc4,sc5,sc6,sc7,sc8,sc9,sc10);
5457: ShowPlayerDialog(playerid, 10228, DIALOG_STYLE_LIST, "Âçÿòü", string, "Âûáðàòü", "Çàêðûòü");
PHP:
if(dialogid == 10227)//!edit!
{
if(response)
{
if(listitem == 0)
{
new sc1 = PlayerInfo[playerid][pSafeNark];
new sc2 = PlayerInfo[playerid][pSafeMats];
new sc3 = PlayerInfo[playerid][pSafeeKey];
new sc4 = PlayerInfo[playerid][pSafeDeagle];
new sc5 = PlayerInfo[playerid][pSafeShotgun];
new sc6 = PlayerInfo[playerid][pSafeM4A1];
new sc7 = PlayerInfo[playerid][pSafeSMG];
new sc8 = PlayerInfo[playerid][pSafeSilenced];
new sc9 = PlayerInfo[playerid][pSafeAK47];
new sc10 = PlayerInfo[playerid][pSafeRifle];
format(string, sizeof(string), "- Íàðêîòèêè [%a/1000]\n- Ìàòåðèàëû [%b/5000]\n- Êëþ÷è îò êàìåðû [%c/50]\n- Desert Eagle [%d/500]\n- Shotgun [%e/350]\n- M4A1 [%f/1500]\n- SMG [%g/1500]\n- Silenced Pistol [%h/250]\n- AK-47 [%i/1000]\n- Rifle [%j/200]",sc1,sc2,sc3,sc4,sc5,sc6,sc7,sc8,sc9,sc10);
ShowPlayerDialog(playerid, 10228, DIALOG_STYLE_LIST, "Âçÿòü", string, "Âûáðàòü", "Çàêðûòü");
}
if(listitem == 1)
{
new sc1 = PlayerInfo[playerid][pSafeNark];
new sc2 = PlayerInfo[playerid][pSafeMats];
new sc3 = PlayerInfo[playerid][pSafeeKey];
new sc4 = PlayerInfo[playerid][pSafeDeagle];
new sc5 = PlayerInfo[playerid][pSafeShotgun];
new sc6 = PlayerInfo[playerid][pSafeM4A1];
new sc7 = PlayerInfo[playerid][pSafeSMG];
new sc8 = PlayerInfo[playerid][pSafeSilenced];
new sc9 = PlayerInfo[playerid][pSafeAK47];
new sc10 = PlayerInfo[playerid][pSafeRifle];
format(string, sizeof(string), "- Íàðêîòèêè [%a/1000]\n- Ìàòåðèàëû [%b/5000]\n- Êëþ÷è îò êàìåðû [%c/50]\n- Desert Eagle [%d/500]\n- Shotgun [%e/350]\n- M4A1 [%f/1500]\n- SMG [%g/1500]\n- Silenced Pistol [%h/250]\n- AK-47 [%i/1000]\n- Rifle [%j/200]",sc1,sc2,sc3,sc4,sc5,sc6,sc7,sc8,sc9,sc10);
ShowPlayerDialog(playerid, 10229, DIALOG_STYLE_LIST, "Èíôîðìàöèÿ î äîìå", string, "Âûáðàòü", "Îòìåíà");
}
}
else return true;
}
