SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/05/2014, 06:34 PM   #1
Johnson_Brooks
Huge Clucker
 
Join Date: Aug 2012
Location: USA/NewYork/Whitestone
Posts: 296
Reputation: 7
Default Why ?

pawn Code:
CMD:help(playerid,params[])
{
    new str[5200];
    strcat(str,"{EEEEEE}Civilian:\n{EEEEEE}Your job is to earn money , the good way , and the bad way\n");
    strcat(str,"{00FF00}Good way:\n{EEEEEE}Earn money as a pilot , and be a normal citizen\n{FF0000}Bad way:{EEEEEE}Kill the cops, rob banks/stores/players and earn easy money\n");
    strcat(str,"{0000FF}Cop/CIA:{EEEEEE}Your job is to give a ticket to criminals and if they dont pay it , to arrest them with any means possible\n");
    strcat(str,"{FFA500}Army:Your job is to help the Goverment by flying military planes to secret locations and gait paid for it.\n");
    strcat(str,"{FFA500}You can also make the cops life easier by helping them since you're more skilled and have advanced weaponry\n");
    ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Help" , str ,"OK, "");
    return 1;
}
This is the code and the errors:
Code:
 error 037: invalid string (possibly non-terminated string)
CnR.pwn(1294) : warning 215: expression has no effect
CnR.pwn(1294) : error 001: expected token: ";", but found ")"
CnR.pwn(1294) : error 029: invalid expression, assumed zero
CnR.pwn(1294) : fatal error 107: too many error messages on one line
Any idea why is this happening ?
The error codes are on ShowPlayerDialog...
__________________
Johnson_Brooks is offline   Reply With Quote
Old 16/05/2014, 06:35 PM   #2
BigBrainAFK
Big Clucker
 
Join Date: Mar 2014
Location: Germany
Posts: 74
Reputation: 3
Default Re: Why ?

pawn Code:
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Help" , str ,"OK, "");

should be

pawn Code:
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Help" , str ,"OK", "");
__________________
Quote:
"And are we meant to guess your code?"
- Y Less
BigBrainAFK is offline   Reply With Quote
Old 16/05/2014, 06:36 PM   #3
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 279
Reputation: 33
Default Re: Why ?

Code:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Help", str, "OK", "");
ball is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.