SA-MP Forums Archive
undefined symbol "giveplayerid" - 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: undefined symbol "giveplayerid" (/showthread.php?tid=503853)



undefined symbol "giveplayerid" - lizter008 - 31.03.2014

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.");
                }
            } 



Re: undefined symbol "giveplayerid" - Cole_William - 31.03.2014

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


AW: undefined symbol "giveplayerid" - Macronix - 31.03.2014

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


Re: undefined symbol "giveplayerid" - lizter008 - 31.03.2014

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


AW: undefined symbol "giveplayerid" - Macronix - 31.03.2014

Can you show me your full command code?


Re: undefined symbol "giveplayerid" - Cole_William - 01.04.2014

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 



Re: undefined symbol "giveplayerid" - PrivatioBoni - 01.04.2014

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