SA-MP Forums Archive
HELP ME PLEASE!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP ME PLEASE!! (/showthread.php?tid=529305)



HELP ME PLEASE!! - ILOVEPAWNV - 01.08.2014

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];



Re: HELP ME PLEASE!! - SHE790 - 01.08.2014

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


Re: HELP ME PLEASE!! - ILOVEPAWNV - 01.08.2014

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?


Re: HELP ME PLEASE!! - ILOVEPAWNV - 01.08.2014

Accidentally double


Re: HELP ME PLEASE!! - SHE790 - 01.08.2014

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



Re: HELP ME PLEASE!! - ILOVEPAWNV - 01.08.2014

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


Re: HELP ME PLEASE!! - SlimDkhili - 01.08.2014

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


Re: HELP ME PLEASE!! - ILOVEPAWNV - 02.08.2014

UP PLEASE


Re: HELP ME PLEASE!! - ILOVEPAWNV - 02.08.2014

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


Re: HELP ME PLEASE!! - SlimDkhili - 02.08.2014

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