the more eroor its in public OnPlayerCommandText(playerid, cmdtext[])
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
new Text:Time, Text:Date;
//////////////clock///////////////////////
SetTimer("Clock",1000,true);
Date = TextDrawCreate(561.000000, 21.000000," ");
TextDrawFont(Date, 3);
TextDrawLetterSize(Date, 0.340000, 1.700000);
TextDrawColor(Date, 0xFFFFFFFF);
//date//
Time = TextDrawCreate(555.000000, 2.000000," ");
TextDrawFont(Time, 3);
TextDrawLetterSize(Time, 0.470000, 2.299999);
TextDrawColor(Time, 0xFFFFFFFF);
////////////////////////////////////////
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
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];
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;
}
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)) {
return 1;
}
return 0;
}
at the end of OnPlayerCommandText
pawn Код:
|
some time you get this erroe when you define OnPlayerCommandText more than once
|