19.10.2010, 20:57
Okay I made a /try command for my FS and it does not let me type a action, Example Luis_Foxx Tries to turn on the Computer but fails
Code;
Code;
pawn Code:
if(!strcmp("/try", cmdtext, true, 5))
{
new getplayer[128];
new str[128];
new str1[128];
GetPlayerName(playerid, getplayer, sizeof(getplayer));
format(str, sizeof(str), "%s Tries to: %s and succeeds", getplayer, str[0]);
format(str1, sizeof(str1), "%s Tries to %s but fails", getplayer, str1[0]);
switch(random(3))
{
case 1:
{
SendClientMessage(playerid, COLOR_PURPLE, str);
}
case 2:
{
SendClientMessage(playerid, COLOR_PURPLE, str1);
}
}
return 1;
}