right way?
#1

how to do this right way :
if(strcmp("/opencgate", cmd, true) == 0 && strcmp(name, "Etch"))
________
Granny Webcams
Reply
#2

Isent that the right way?
Idk only thing ive ever done like that is

if(dialogid == register && response)
Reply
#3

Maybe you could do something like this:

pawn Код:
if(!strcmp("/opencgate", cmd, true)) {
   if(strcmp(name, "Etch")) {
     // MoveObject(...);
     return true;
   }
   else return SendClientMessage(playerid, 0xFFFFFFAA, " Only Etch is allowed to open the gate.");
}

Reply
#4

didnt work
solved anyway
________
Vaporizer silver surfer
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)