Compiling Error 079
#5

pawn Код:
LINE 416:   if (strcmp("/wepshop", cmdtext, true, 11) == 0)
LINE 417:    {
LINE 418:   if(IsPlayerVipType(playerid,1))
LINE 419:   {
LINE 420:       new listitem[] = "1\tBrass Knuckles ($500)\n2\tGolf Club ($500)\n3\tNite Stick ($500)\n4\tKnife ($500)\n5\tBaseball Bat ($500)\n6\tShovel ($500)\n7\tPool Cue ($500)\n8\tKatana ($500)\n9\tChainsaw ($1500)\n10\t9mm Pistol ($2000)\n11\tSilenced 9mm Pistol ($2100)\n12\tDesert Eagle ($2100)\n13\tSawn-Off Shotgun ($10000)\n14\tAK-47 ($5000)\n15\tTEC-9 ($2500)\n16\tSpecial Weapon ($50000)\n";
LINE 421:       ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"List of weapons:",listitems,"Get Gun","Cancel");
LINE 422:   if(dialogid == 1) {
LINE 423:        if(response) {
LINE 424:            new message[256+1];
LINE 425:            if(listitem == 0) {
LINE 426:                format(message, 256, "You selected 'Brass Knuckles'", listitem);
LINE 427:           GivePlayerMoney(playerid, -500);
LINE 428:           SendClientMessage(playerid, 0xFFFFFFFF, message);
LINE 429:            GivePlayerWeapon (playerid, 1, 500);
LINE 430:            } else if(listitem == 1) {
LINE 431:                format(message, 256, "You selected 'Golf Club'", listitem);
LINE 432:            SendClientMessage(playerid, 0xFFFFFFFF, message);
LINE 433:            GivePlayerWeapon (playerid, 2, 500);
LINE 434:               return 1;
Attempted doing this... But got these errors:

Quote:

(421) : error 017: undefined symbol "listitems"
(422) : error 017: undefined symbol "dialogid"
(423) : error 017: undefined symbol "response"
(425) : error 033: array must be indexed (variable "listitem")
(430) : error 033: array must be indexed (variable "listitem")
(434) : error 079: inconsistent return types (array & non-array)

Reply


Messages In This Thread
Compiling Error 079 - by ivitec - 15.12.2012, 02:39
Re: Compiling Error 079 - by willsuckformoney - 15.12.2012, 02:52
Re: Compiling Error 079 - by ivitec - 15.12.2012, 02:57
Re: Compiling Error 079 - by willsuckformoney - 15.12.2012, 03:14
Re: Compiling Error 079 - by ivitec - 15.12.2012, 03:40
Re: Compiling Error 079 - by willsuckformoney - 15.12.2012, 03:55
Re: Compiling Error 079 - by RajatPawar - 15.12.2012, 05:27

Forum Jump:


Users browsing this thread: 2 Guest(s)