11.06.2011, 07:03
Yeah, now my code looks like this:
I have also command for it (using zcmd)
However, now it says SERVER: Uknown command. Why?
On compile, there is no errors/warnings at all.
pawn Code:
stock CreateCarSchoolDialog(playerid)
{
new str[255];
ShowPlayerDList(playerid, -1, "Car school Questions", "Choose", "Exit");
for(new qide = 0; qide < MAX_QUESTIONS; qide++)
{
format(str, sizeof(str), "%i. %s", questions[qide][qid], questions[qide][question]);
AddDListItem(playerid, str, questions[qide][qid]);
}
ShowPlayerDList(playerid, 9053+1742, "Car school Questions", "Choose", "Exit");
return 1;
}
pawn Code:
COMMAND:test1(playerid, params[])
{
CreateCarSchoolDialog(playerid);
return 1;
}
On compile, there is no errors/warnings at all.