SA-MP Forums Archive
I'm to dumb.. Please help me again.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I'm to dumb.. Please help me again.. (/showthread.php?tid=251272)



I'm to dumb.. Please help me again.. - trapped1 - 26.04.2011

here is the code:
Код:
error 017: undefined symbol "text"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Here is the line alll errors in one line:

Код:
format(string,sizeof string,"[OOC] %s: %s",pName, text[5]);
So please help me... And have a nice day mates Thank you for your help and your used time... :P


Re: I'm to dumb.. Please help me again.. - Gertin - 26.04.2011

Show that CMD .

But
pawn Код:
new text[128];
And i think there comes
pawn Код:
format(string,sizeof string,"[OOC] %s: %s",pName, text);
But i dont know ...

Show that command ..


Re: I'm to dumb.. Please help me again.. - trapped1 - 26.04.2011

So here is the code

Quote:

if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, text[5]);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}

And new text[128] didnt worked!


Re: I'm to dumb.. Please help me again.. - Bilawal2050 - 26.04.2011

https://sampforum.blast.hk/showthread.php?tid=251261 help me here


Re: I'm to dumb.. Please help me again.. - Gertin - 26.04.2011

pawn Код:
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
new pName[MAX_PLAYER_NAME], string[128], text[64];
 GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, text);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}
But that not work (i think) , but why you dont use ZCMD ? :S


Re: I'm to dumb.. Please help me again.. - trapped1 - 26.04.2011

Becouse all login script is based on dini... maybe remake it I will do that


Re: I'm to dumb.. Please help me again.. - xDeadlyBoy - 26.04.2011

pawn Код:
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
if(strlen(cmdtext) < 4) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /l [Text]");
new pName[MAX_PLAYER_NAME], string[128];
 GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, cmdtext[3]);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}



Re: I'm to dumb.. Please help me again.. - trapped1 - 26.04.2011

thank you All working now fine Remeking commands and failed by the question about zcmd.. Now I'm remeking