new string[50];
format(string,sizeof(string),"What is rawr?");
SendClientMessage(playerid,-1,"Rawr");
if(!strcmp(string,"rawr",true);
{
Kick(playerid);
}
not 100% sure what your on about however this is my attempt at a RP quiz:
pawn Код:
|
Why using a string for this?
And I don't understand what the author trys to do, can you explain again? |
new count=-1;
public OnPlayerText(playerid, text[])
{
new message[180],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
count+=1;
if(count==0)
{
format(message,sizeof(message),"%s says: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
return 0;
}
if(count==1)
{
format(message,sizeof(message),"%s then says: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
return 0;
}
if(count==2)
{
format(message,sizeof(message),"%s chit chats: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
return 0;
}
if(count==3)
{
format(message,sizeof(message),"%s says while pukeing: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
return 0;
}
if(count==4)
{
format(message,sizeof(message),"%s responds: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
return 0;
}
if(count==5)
{
format(message,sizeof(message),"%s wonders: %s", playername, text);
SendClientMessageToAll(yourcolor, message);
count=-1;
return 0;
}
return 1;
}