/try [HELP!!!]
#1

Hello I am Spanish,when I put in de game /try , i get this /Try [action], but when i put /Try with the action,continues to go out /Try [action]

Quote:

if(!strcmp("/Try", cmdtext, true, 4))
{
if(cmdtext[4] == ' ')
{
new plyName[MAX_PLAYER_NAME];
new buffer[255];
new rand = random(20);

GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
strdel(cmdtext, 0, 4);
if(rand >= 10)
{
format(buffer, sizeof(buffer), "* %s tries and succeeds in %s", plyName, cmdtext);
}else{
format(buffer, sizeof(buffer), "* %s tries and fails in %s", plyName, cmdtext);
}

for(new ply; ply != MAX_PLAYERS; ply++)
{
if(CheckPlayerDistanceToPlayer(20, playerid, ply))
{
SendClientMessage(ply, 0x00FFFF, buffer);
}
}
}else{
SendClientMessage(playerid, 0xFF0000FF, "USA: /Try [action]");
}
return 1;
}


HELP!!!!!

Is it may be because there is nobody around? I think not because that would %s tries and fails in %s

HELP!!!!!

Reply
#2

Man. Im Try This Command And Fails Much. Emm.. No sabria fix it.

Te dejo aqui uno, que esta por arreglar.

Quote:
Originally Posted by Command /Try
if(!strcmp("/intentar", cmdtext, true, 4))
{
if(cmdtext[4] == ' ')
{
new plyName[MAX_PLAYER_NAME];
new buffer[255];
new rand = random(20);

GetPlayerName(playerid, plyName, MAX_PLAYER_NAME);
strdel(cmdtext, 0, 4);
if(rand >= 10)
{
format(buffer, sizeof(buffer), "* %s intenta %s y lo consigue", plyName, cmdtext);
}else{
format(buffer, sizeof(buffer), "* %s intenta %s pero falla", plyName, cmdtext);
}

for(new ply; ply != MAX_PLAYERS; ply++)
{
{
SendClientMessage(ply, 0x00FFFF, buffer);
}
}
}else{
SendClientMessage(playerid, 0xFF0000FF, "USA: /intentar [accion]");
}
return 1;
}
Espero que te sirva =)
Reply
#3

Lo siento, pero no funciona!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)