29.07.2018, 12:29
Don't ask me such as question:"Why don't you direct use 'cmdtext' ?"
I have own reason.
Help,please.
I have own reason.
Code:
public OnPlayerCommandReceived(playerid,cmdtext []) { new cmd[] = cmdtext;//error 008: must be a constant expression; assumed zero strdel(cmd, 0, 0); for(new i = 1; i < MAX_TELEPORT; i++) { if(!strcmp(cmd, TeleportData[i][CMD], false) && !isnull(TeleportData[i][CMD]) && !isnull(cmd)) { SetPlayerPos(playerid,TeleportData[i][PosY],TeleportData[i][PosX],TeleportData[i][PosZ]); break; } } return 1; }