undefined symbol "giveplayerid"
#1

PHP код:
C:\Documents and Settings\drei\Desktop\0.3z\gamemodes\OLD.pwn(63520) : error 017undefined symbol "giveplayerid"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

PHP код:
                if(PlayerInfo[playerid][pCookies] < 150)
                {
                    
PlayerInfo[playerid][pCookies] -= 150;
                    
PlayerInfo[giveplayerid][pGCoupon] = 1;
                    
format(stringsizeof(string), "AdmCmd: %s exchange her 150 cookies for 7 days Gold Donator Coupon.",GetPlayerNameEx(playerid));
                    
SendClientMessageToAllEx(COLOR_LIGHTREDstring);
                }
                else
                {
                     
SendClientMessage(playeridCOLOR_WHITE"You dont have any cookies to buy this item.");
                }
            } 
Reply
#2

Код:
new string[128], giveplayerid
Have you put that in there?
Reply
#3

pawn Код:
new giveplayerid;
Somewhere in the function/command
Reply
#4

PHP код:
PlayerInfo[giveplayerid][pGCoupon] = 1
here's the error
Reply
#5

Can you show me your full command code?
Reply
#6

Quote:
Originally Posted by lizter008
Посмотреть сообщение
PHP код:
PlayerInfo[giveplayerid][pGCoupon] = 1
here's the error
The error may show as there, but the actual error could be your missing the
PHP код:
new giveplayerid
or
PHP код:
new giveplayerid 
Reply
#7

Make sure you defined the symbol before doing the "PlayerInfo" line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)