HELP ME PLEASE!!
#1

HELO ALL
IM HAVE EROOR AND I DONT KNOW WHY!
PLEASE HELP ME
Код:
the more eroor its in 
public OnPlayerCommandText(playerid, cmdtext[])
the eroe
Код:
error 021: symbol already defined: "Time"
 error 076: syntax error in the expression, or invalid function call
 error 076: syntax error in the expression, or invalid function call
error 076: syntax error in the expression, or invalid function call
 error 076: syntax error in the expression, or invalid function call
error 076: syntax error in the expression, or invalid function call
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
 error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
the codes
PHP код:
new Text:TimeText:Date
in ondamemode int
PHP код:
//////////////clock///////////////////////
        
SetTimer("Clock",1000,true);
    
Date TextDrawCreate(561.00000021.000000," ");
    
TextDrawFont(Date3);
    
TextDrawLetterSize(Date0.3400001.700000);
    
TextDrawColor(Date0xFFFFFFFF);
//date//
    
Time TextDrawCreate(555.0000002.000000," ");
    
TextDrawFont(Time3);
    
TextDrawLetterSize(Time0.4700002.299999);
    
TextDrawColor(Time0xFFFFFFFF);
//////////////////////////////////////// 
in on spawn
PHP код:
TextDrawShowForPlayer(playeridTime), TextDrawShowForPlayer(playeridDate); 
the mroe errors its about
Код HTML:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
new tmp[256];
new tmp2[256];
new pname[MAX_PLAYER_NAME];
new vehicleid=GetPlayerVehicleID(vehicleid);
new file[256],text[256],text2[256],name[MAX_PLAYER_NAME],playername[MAX_PLAYER_NAME];
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
new tmp[256];
new tmp2[256];
new pname[MAX_PLAYER_NAME];
new vehicleid=GetPlayerVehicleID(vehicleid);
new file[256],text[256],text2[256],name[MAX_PLAYER_NAME],playername[MAX_PLAYER_NAME];
return 1;
}
EDIT: mb becouse u didnt returned and closed it :/
By the way u define new time already remove it
Reply
#3

loock waht im do in this public
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
new tmp[256];
new tmp2[256];
new pname[MAX_PLAYER_NAME];
new vehicleid=GetPlayerVehicleID(vehicleid);
new file[256],text[256],text2[256],name[MAX_PLAYER_NAME],playername[MAX_PLAYER_NAME];
//new reason[256];
//= - = - = - = -  = - = - = COMMANDS = - = - = -  = - = - = - = - =  //
if(CheckFlooding(playerid) && LevelAdmin(playerid)) return SendClientMessage(playerid,red,"[Anti-Spam] - .! дегтд азъ блем 2 щрйеъ"),0;
if(AFKCmd[playerid] && strcmp(cmdtext,"/unafk",true) != 0) return SendClientMessage(playerid,0x8B4513AA,".AFK айрк йлем мбцт фчегеъ боцб");
if(Mute[playerid]==1) { SendClientMessage(playerid,0xFFFFFFAA, "аъд ма йлем мгбш, аъд бойеи"); return 0;
///////////////////////////Admins/////////////////////////////////////////////
		if(!strcmp(cmd,"/Mute",true,3))
{
Waht the Problam, and waht im can fix it?
Reply
#4

Accidentally double
Reply
#5

at the end of OnPlayerCommandText
pawn Код:
return 1;
    }
    return 0;
}
Reply
#6

Quote:
Originally Posted by SHE790
Посмотреть сообщение
at the end of OnPlayerCommandText
pawn Код:
return 1;
    }
    return 0;
}
I sent you a private message
lock please!
Reply
#7

some time you get this erroe when you define OnPlayerCommandText more than once
Reply
#8

UP PLEASE
Reply
#9

Quote:
Originally Posted by SlimDkhili
Посмотреть сообщение
some time you get this erroe when you define OnPlayerCommandText more than once
Waht? its no problam!!
Reply
#10

no , onlyone time , OnPlayerCommandText , OnPlayerGameModEnit , OnPlayerGameModeExit , should be defined once
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)