26.09.2009, 02:30
public OnPlayerText(playerid, text[])
{
for(new i = 0; i != 126; i++)
{
if(text[i] == "a") text[i] = "4"
if(text[i] == "e") text[i] = "3"
if(text[i] == "l") text[i] = "1"
if(text[i] == "o") text[i] = "0"
if(text[i] == "s") text[i] = "5"
if(text[i] == "t") text[i] = "7"
}
SendPlayerMessageToAll(playerid,text)
return 0;
}
Why won't this code work, btw its a 1337 translator!
{
for(new i = 0; i != 126; i++)
{
if(text[i] == "a") text[i] = "4"
if(text[i] == "e") text[i] = "3"
if(text[i] == "l") text[i] = "1"
if(text[i] == "o") text[i] = "0"
if(text[i] == "s") text[i] = "5"
if(text[i] == "t") text[i] = "7"
}
SendPlayerMessageToAll(playerid,text)
return 0;
}
Why won't this code work, btw its a 1337 translator!