One Simple error
#1

Well I'm trying to set that player gets dialog with kills, name and Score. But i've got a problem

Code:
PHP код:
    new string[128];
       
format(stringsizeof(string), "Score: %i",GetPlayerScore(playerid));
    new 
name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        
format(stringsizeof(string), "Name: %s"name);
        new 
string[48];
       
format(stringsizeof(string), "Wealth: $%i"GetPlayerMoney(playerid));
    
    
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Notice","%s\n%i\n$%i","Close",""); 
Errors:
PHP код:
C:\Users\Maki\Desktop\server 0.3d\filterscripts\TwinkisFS.pwn(480) : error 021symbol already defined"string"
C:\Users\Maki\Desktop\server 0.3d\filterscripts\TwinkisFS.pwn(484) : error 021symbol already defined"string" 
Reply
#2

pawn Код:
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Score: %i\nName: %s\nWealth: $%i", GetPlayerScore(playerid), name, GetPlayerMoney(playerid));
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Notice",string,"Close","");
Reply
#3

Why it's not going to work? That ShowPlayerDialog?

Edit: still getting the errors tho.
Reply
#4

Quote:
Originally Posted by Twinki1993
Посмотреть сообщение
Why it's not going to work? That ShowPlayerDialog?

Edit: still getting the errors tho.
I edited my post, try it
Reply
#5

Oh I did. It's working now. Atleast on the compile. I will test it now.

Edit: tested, working fully. Thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)