04.08.2016, 19:31
So, I wanted to put a command "/go", and I have some errors.
This is the script
CMD:go(playerid, params[]) {
if(playerVariables[playerid][pAdminLevel] > 0) {
ShowPlayerDialog(playerid, DIALOG_GO, DIALOG_STYLE_LIST, "SERVER: Teleport Locations", "House Interiors\nRace Tracks\nCity Locations\nPopular Locations\nGym Interiors\nOther", "Select", "Cancel");
}
else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
return 1;
}
And there are the errors: http://imgur.com/a/Yhc8g
Can you fix this pls?
This is the script
CMD:go(playerid, params[]) {
if(playerVariables[playerid][pAdminLevel] > 0) {
ShowPlayerDialog(playerid, DIALOG_GO, DIALOG_STYLE_LIST, "SERVER: Teleport Locations", "House Interiors\nRace Tracks\nCity Locations\nPopular Locations\nGym Interiors\nOther", "Select", "Cancel");
}
else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
return 1;
}
And there are the errors: http://imgur.com/a/Yhc8g
Can you fix this pls?