Help Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Errors (
/showthread.php?tid=578080)
Help Errors -
SHFaCeBook - 16.06.2015
Hello
i get this errors , when i compile gm
Код:
(15618) : error 075: input line too long (after substitutions)
(15619) : error 017: undefined symbol "Premium"
(15619) : error 017: undefined symbol "Account"
(15619) : error 017: undefined symbol "Premium"
(15619) : fatal error 107: too many error messages on one line
line i get error:
pawn Код:
"Premium Account - 35 Premium Poins\nPremium Pack($3,000,000 + 2 Levels + 100 Coins) - 35 Premium Points\nChange Name - 10 Premium Points\nAdd a Vehicle Slot(%d/6) - %d Premium Poins\nVehicle Hidden Color - 2 Premium Points\nKMs and Days reset for veh. - 10 Premium Points\nClear Warns - 20 Premium Points\nClear Faction Punish - 10 Premium Points\nVehilce Maverick - 40 Premium Points\nVehilce Banshee - 40 Premium Points\nVehilce ZR-350 - 40 Premium Points\nCreate Clan - 40 Premium Points\nAdittional 20 Clan Slots - 10 Premium Points",
full code:
pawn Код:
new count = 2;
// new price;
if(PlayerInfo[playerid][pVKey3] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey4] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey5] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey6] != -1) { count ++; }
if(count == 2) { slotprice[playerid] = 10; }
if(count == 3) { slotprice[playerid] = 10; }
if(count == 4) { slotprice[playerid] = 15; }
if(count == 5) { slotprice[playerid] = 15; }
if(count == 6) { slotprice[playerid] = 20; }
new plm[724]; // :O :O :O :O MAREEE
format(plm, sizeof(plm),
"Premium Account - 35 Premium Poins\nPremium Pack($3,000,000 + 2 Levels + 100 Coins) - 35 Premium Points\nChange Name - 10 Premium Points\nAdd a Vehicle Slot(%d/6) - %d Premium Poins\nVehicle Hidden Color - 2 Premium Points\nKMs and Days reset for veh. - 10 Premium Points\nClear Warns - 20 Premium Points\nClear Faction Punish - 10 Premium Points\nVehilce Maverick - 40 Premium Points\nVehilce Banshee - 40 Premium Points\nVehilce ZR-350 - 40 Premium Points\nCreate Clan - 40 Premium Points\nAdittional 20 Clan Slots - 10 Premium Points",
count, slotprice[playerid]);
ShowPlayerDialog(playerid, 6029, DIALOG_STYLE_LIST,"* Premium Shop",plm, "Select","Close");
}
}
and +REP for any one is helped me! and Thanks!
Re: Help Errors -
SHFaCeBook - 16.06.2015
Bump!
Re: Help Errors -
DarkLored - 16.06.2015
Create a new string called "string" and use strcat to allow yourself to put so much input and then simply use format(plm, sizeof(plm), string, count, blabla);
and that's it. Here is a link that shows how to use strcat.
https://sampwiki.blast.hk/wiki/Strcat
Next time please read your errors and try to understand what they mean and do research before making a thread!
Re: Help Errors -
X337 - 17.06.2015
Код:
new count = 2;
// new price;
if(PlayerInfo[playerid][pVKey3] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey4] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey5] != -1) { count ++; }
if(PlayerInfo[playerid][pVKey6] != -1) { count ++; }
if(count == 2) { slotprice[playerid] = 10; }
if(count == 3) { slotprice[playerid] = 10; }
if(count == 4) { slotprice[playerid] = 15; }
if(count == 5) { slotprice[playerid] = 15; }
if(count == 6) { slotprice[playerid] = 20; }
new plm[724]; // :O :O :O :O MAREEE
format(plm, sizeof(plm), "Premium Account - 35 Premium Poins\nPremium Pack($3,000,000 + 2 Levels + 100 Coins) - ");
format(plm, sizeof(plm), "%s35 Premium Points\nChange Name - 10 Premium Points\nAdd a Vehicle Slot(%d/6) - %d Premium Poins\n", plm, count, slotprice[playerid]);
format(plm, sizeof(plm), "%sVehicle Hidden Color - 2 Premium Points\nKMs and Days reset for veh. - 10 Premium Points\nClear Warns - 20 Premium Points\nClear Faction Punish - 10 Premium Points\nVehilce Maverick - 40 Premium Points\n", plm);
format(plm, sizeof(plm), "%sVehilce Banshee - 40 Premium Points\nVehilce ZR-350 - 40 Premium Points\nCreate Clan - 40 Premium Points\nAdittional 20 Clan Slots - 10 Premium Points", plm);
ShowPlayerDialog(playerid, 6029, DIALOG_STYLE_LIST,"* Premium Shop",plm, "Select","Close");
}
}