Help me in this
#1

Well first of all I'm a new scripter i'm still learning i took a Filterscript and I'm editing it.
This is the script : http://pastebin.com/T5WZ0H5q

if you can check the last lines

for example

PHP код:
              if(listitem == 0// MP5
            
{
            if(
PlayerInfo[playerid][ptokens] >= 5)
                    {
                
SendClientMessage(playeridCOLOR_GREY,"* Recieved your GUN, HAVE FUN ! ");
                
PlayerInfo[playerid][ptokens] -= 5;
                
GivePlayerWeapon(playerid29200);
                new 
INI:File INI_Open(UserPath(playerid));
                  
INI_SetTag(File"VIP Tokens");
                  
INI_WriteInt(File,"Tokens:"PlayerInfo[playerid][ptokens]);
                  
INI_Close(File);
                  }
            else
                    {
                    
SendClientMessage(playeridCOLOR_GREY,"* You cannot afford this!");
                    } 
It says that everything is correct when i compile it but when i'm ingame and try to take an MP5 nothing happens the Tokens doesn't change and i don't take the MP5 it says only you cannot afford this and only for MP5 for other weapons nothing..
Reply
#2

Do you have 5 tokens in the first place?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)