again ? why "reps"
#1

Код:
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4239) : error 010: invalid function or declaration
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4241) : error 010: invalid function or declaration
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4248) : error 010: invalid function or declaration
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4909) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код HTML:
        if(IsPlayerConnected(playerid))
        {
            strcat(string, "{FF0000}Player:{FFFFFF} /O = Body objects  /Skin = Change your skin  /kill = suicide  /Pm {id} {message}  /mycolor = change your color\n/Ptele {ID}  /Top5\n\n");
            strcat(string, "{FFFFFF} /Teles = important teleport  /Teleports = Many Teleports + Cities\n\n");
            strcat(string, "{FFFFFF} /Car [name/id]  /V = Vehicles List  Press 'HORN' button to fix car\n\n");
            strcat(string, "{FFFFFF} /Admins = Show online admins\n\n");
            ShowPlayerDialog(playerid, DIALOG_DCMDS, DIALOG_STYLE_MSGBOX, "{FFFF00}StuntNoobZ - Rules!",string,"Okay","");
            return 1;
        }
ERROR!!! PLZ Fix +REP
Reply
#2

hey dude, here's

Код:
new rules[900],string[900];

format(rules, sizeof(rules),"Your Text 1!\n");strcat(string,rules);  // their lines.
format(rules, sizeof(rules),"Your Text 2!\n");strcat(string,rules);  // and so will just add more lines
ShowPlayerDialog(playerid, DIALOG_DCMDS, DIALOG_STYLE_MSGBOX, "{FFFF00}StuntNoobZ - Rules!",string,"Okay","");
Reply
#3

Quote:
Originally Posted by HotStyle
Посмотреть сообщение
hey dude, here's

Код:
new rules[900],string[900];

format(rules, sizeof(rules),"Your Text 1!");strcat(string,rules);  // their lines.
format(rules, sizeof(rules),"Your Text 2!");strcat(string,rules);  // and so will just add more lines
ShowPlayerDialog(playerid, DIALOG_DCMDS, DIALOG_STYLE_MSGBOX, "{FFFF00}StuntNoobZ - Rules!",string,"Okay","");
I believe you used the strcat in a wrong method as the maxlength is missing + why even use it when you already had use format?
Reply
#4

I have a dialog so and it works.

Observation: i just forgot to put "\n" on end of text to create a new line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)