What's wrong here
#1

I know it's prolly somthing simple but i'm having a brainfart at the moment

pawn Код:
if(dialogid == 25)
        {
            if(!response)
            format(str, sizeof (str), "You have deposited %d in your bank account",inputtext);
            SendClientMessage(playerid,COLOR_YELLOW,str);
            PlayerInfo[playerid][pBank] = inputtext; //line 3139
            GivePlayerCash(playerid, -inputtext); //line 3140

        }
Код:
C:\Users\Server\Desktop\samp\gamemodes\newslrp.pwn(3139) : error 006: must be assigned to an array
C:\Users\Server\Desktop\samp\gamemodes\newslrp.pwn(3140) : error 033: array must be indexed (variable "inputtext")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

In stead of using inputtext use 'strval(inputtext)'. Needed since it is a string

Btw, now this code works when the player presses cancel!
Reply
#3

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
In stead of using inputtext use 'strval(inputtext)'. Needed since it is a string

Btw, now this code works when the player presses cancel!
Ya, i had return ShowPlayerDialog After !response but i removed it to try somthing.

Thank you for the help tho
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)