I'm to dumb.. Please help me again..
#1

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
Reply
#2

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 ..
Reply
#3

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!
Reply
#4

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

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
Reply
#6

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

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;
}
Reply
#8

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


Forum Jump:


Users browsing this thread: 3 Guest(s)