if(strcmp(cmdtext, "/forumsamp", true) == 0){
new samp[128];
if(Admin[playerid] == 1)
{
strcat(samp, "Hello Forum-Samp! :D");
}
if(Admin[playerid] == 2)
{
strcat(samp, "Hello my friends ;)");
}
ShowPlayerDialog(playerid, dialogteste, DIALOG_STYLE_MSGBOX, "Teste Dialog", samp, "Ok", "");
return 1;
}
if(strcmp(cmdtext, "/forumsamp", true) == 0){
new samp[128];
if(Admin[playerid] == 1)
{
strcat(samp, "Hello Forum-Samp! :D");
}
if(Admin[playerid] == 2)
{
strcat(samp, "Hello my friends ;)");
}
ShowPlayerDialog(playerid, dialogteste, DIALOG_STYLE_MSGBOX, "Teste Dialog", samp, "Ok", "");
return 1;
}
Originally Posted by lKoDlFuLLaNNo
tenta assim '-'
|
if(strcmp(cmdtext, "/forumsamp", true) == 0){
new samp[128];
if(Admin[playerid] == 0)
{
return strcat(playerid,-1,"Vocк nгo й ADM Nгo pode usar este comando!");
}
if(Admin[playerid] == 1)
{
strcat(samp, "Hello Forum-Samp! :D");
}
if(Admin[playerid] == 2)
{
strcat(samp, "Hello my friends ;)");
strcat(samp, "Hello Forum-Samp! :D");
}
ShowPlayerDialog(playerid, dialogteste, DIALOG_STYLE_MSGBOX, "Teste Dialog", samp, "Ok", "");
return 1;
}
if(strcmp(cmdtext, "/forumsamp", true) == 0)
{
new samp[128];
if(Admin[playerid] >= 1)
{
strcat(samp, "Hello Forum-Samp! :D");
}
else if(Admin[playerid] >= 2)
{
strcat(samp, "Hello my friends ;)");
}
ShowPlayerDialog(playerid, dialogteste, DIALOG_STYLE_MSGBOX, "Teste Dialog", samp, "Ok", "");
return 1;
}
if(!Admin[playerid] >= 1) return strcat(playerid,-1,"Vocк nгo й ADM Nгo pode usar este comando!");
if(Admin[playerid] == 1)
{
strcat(samp, "Hello Forum-Samp! :D");
}
if(Admin[playerid] == 2)
{
strcat(samp, "Hello my friends ;)");
strcat(samp, "Hello Forum-Samp! :D");
}
ShowPlayerDialog(playerid, dialogteste, DIALOG_STYLE_MSGBOX, "Teste Dialog", samp, "Ok", "");
return 1;
}
> Maior >= Maior ou igual < Menor <= Menor ou igual == Igual a != Diferente