31.05.2017, 23:25
No clue, could be anything, but adding other strcmp commands like that should work
if /hello1 and /hello2 is working that the problem is within your code
So if your other commands are also strcmp based they should work
PHP Code:
//
if(strcmp(cmdtext, "/hello1", true) == 0) {
return SendClientMessage(playerid, -1, "Hello1");
}
if(strcmp(cmdtext,"/fb", true, 3) == 0 && cmdtext[3] <= ' ') {
if(cmdtext[3] == EOS || cmdtext[4] == EOS) {
return SendClientMessage(playerid, -1, "/fb <car id>");
}
if(DestroyVehicle(strval(cmdtext[4])) == 0) {
return SendClientMessage(playerid, -1, "Invalid vehicleid!");
}
return SendClientMessage(playerid, -1, "Vehicle destroyed!");
}
if(strcmp(cmdtext, "/hello2", true) == 0) {
return SendClientMessage(playerid, -1, "Hello2");
}
So if your other commands are also strcmp based they should work