WTF IS WRONG
#1

PHP код:
if (dialogid == DIALOG_EVSYSSTARTENZEIT)
{
    new 
string [58];
    if (! 
response) {Event [EventEdit] = 0; return 0; }
    if (! 
IsNumeric (inputtext)) {SCM (playerid, -1"Numbers Only!"); ShowPlayerDialog (playeridDIALOG_EVSYSSTARTENZEITDIALOG_STYLE_INPUT"Event Time""Please enter the event time in minutes! (Min: 3) \ n""Set""Cancel"); return 1;}
    if (
strval (inputtext) <3) return SCM (playerid"[EventSystem]: The event must take at least 3 minutes!"); // Problem
    
format (stringsizeof (string), "[EventSystem]: You have set the event time to% d: 00 minutes!"Event [EventTime]);
    
SCM (playeridEVENT COLORstring);

Problem: error 035: argument type mismatch (argument 2)

Problem line marked
Reply
#2

You missed the color Parameter.

Write it like this:

PHP код:
SCM (playerid, -1"[EventSystem]: The event must take at least 3 minutes!"); 
Reply
#3

YOU ALSO MISSED AN UNDERSCORE FOR YOUR:

Код:
EVENT COLOR
REPLACE IT WITH

Код:
EVENT_COLOR
Reply
#4

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
You missed the color Parameter.

Write it like this:

PHP код:
SCM (playerid, -1"[EventSystem]: The event must take at least 3 minutes!"); 

thx !
Reply
#5

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
YOU ALSO MISSED AN UNDERSCORE FOR YOUR:

Код:
EVENT COLOR
REPLACE IT WITH

Код:
EVENT_COLOR
And no that was correct, php codes fault
Reply
#6

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)