SA-MP Forums Archive
string error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: string error (/showthread.php?tid=211186)



string error - Parrot - 14.01.2011

.pwn(763) : error 017: undefined symbol "string"
.pwn(763) : error 017: undefined symbol "string"
.pwn(763) : error 029: invalid expression, assumed zero
.pwn(763) : fatal error 107: too many error messages on one line

line 763:
pawn Код:
format(string, sizeof(string), "If you sell your property, you stand to make $%d.", PlayerInfo[playerid][pHouseLevel] * 40000);
(
pawn Код:
if(!strlen(x_nr))
                {
                    format(string, sizeof(string), "If you sell your property, you stand to make $%d.", PlayerInfo[playerid][pHouseLevel] * 40000);
                    SendClientMessage(playerid, COLOR_GREY, string);
                    SendClientMessage(playerid, COLOR_GREY, "If you're sure you want to sell, type: /sellhouse confirm");
                    return 1;
                }
)


AW: string error - Kmitska - 14.01.2011

add this at the top:
new string[285];


Re: string error - Parrot - 14.01.2011

Tried that already but got these errors then;
pawn Код:
pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level
pawno\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level
.pwn(801) : error 017: undefined symbol "giveplayerid"
.pwn(803) : error 017: undefined symbol "pAdmin"
.pwn(811) : error 017: undefined symbol "giveplayerid"
.pwn(813) : error 017: undefined symbol "giveplayerid"
.pwn(814) : error 017: undefined symbol "giveplayerid"
.pwn(815) : error 017: undefined symbol "giveplayerid"
.pwn(816) : error 017: undefined symbol "giveplayerid"
.pwn(817) : error 017: undefined symbol "giveplayerid"
.pwn(818) : error 017: undefined symbol "giveplayerid"
.pwn(819) : error 017: undefined symbol "giveplayerid"
.pwn(820) : error 017: undefined symbol "giveplayerid"
.pwn(821) : error 017: undefined symbol "giveplayerid"
.pwn(822) : error 017: undefined symbol "giveplayerid"
.pwn(823) : error 017: undefined symbol "giveplayerid"
.pwn(824) : error 017: undefined symbol "giveplayerid"
.pwn(825) : error 017: undefined symbol "giveplayerid"
.pwn(826) : error 017: undefined symbol "giveplayerid"
.pwn(827) : error 017: undefined symbol "giveplayerid"
.pwn(828) : error 017: undefined symbol "giveplayerid"
.pwn(829) : error 017: undefined symbol "giveplayerid"
.pwn(841) : error 017: undefined symbol "giveplayerid"
.pwn(843) : error 017: undefined symbol "pAdmin"
.pwn(852) : error 017: undefined symbol "giveplayerid"
.pwn(858) : error 017: undefined symbol "giveplayerid"
.pwn(859) : error 017: undefined symbol "giveplayerid"
.pwn(860) : error 017: undefined symbol "giveplayerid"



AW: string error - Kmitska - 14.01.2011

huh, well i don't know your problem coudn't understand it.


AW: string error - Kmitska - 14.01.2011

Quote:

a bit idiotish but...

lol thanks