26.06.2017, 18:03
Example:
I Have a JOB System.
for this:
can i use this:
right?
I Have a JOB System.
for this:
PHP код:
if(JOB == 1) return SendClientMessage(playerid, -1, "PizzaBoy");
if(JOB == 2) return SendClientMessage(playerid, -1, "Fisherman");
if(JOB == 3) return SendClientMessage(playerid, -1, "Lumberjacker");
if(JOB == 4) return SendClientMessage(playerid, -1, "Seller");
PHP код:
switch(JOB)
{
case 1: SendClientMessage(playerid, -1, "PizzaBoy");
case 2: SendClientMessage(playerid, -1, "Fisherman");
case 3: SendClientMessage(playerid, -1, "Lumberjacker");
case 4: SendClientMessage(playerid, -1, "Seller");
}