How to create this text
#1

Hi.
At the beginning I would like to point out we English is bad, so sorry for mistakes.

How I can create this text?


And... How Can I convert this mod to the Zcmd:
Код:
if(!strcmp(cmd,"/changeplate",true))
{
  new string[64];
  if(!IsPlayerAdmin(playerid))
    return SendClientMessage(playerid,0xFFFFFFAA,"You are not authorized to use this command.");
  if(!IsPlayerInAnyVehicle(playerid))
    return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
  if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)
    return SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /changeplate [newplate]");
  format(string,sizeof(string),"%s",cmdtext[idx]);
    return SetVehicleNumberPlate(GetPlayerVehicleID(playerid),string);
}
I changed this code for Zcmd:
Код:
CMD:changeplate(playerid, params[])
{
  new string[64];
  if(!IsPlayerAdmin(playerid))
    return SendClientMessage(playerid,0xFFFFFFAA,"You are not authorized to use this command.");
  if(!IsPlayerInAnyVehicle(playerid))
    return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
  if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)
    return SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /changeplate [newplate]");
  format(string,sizeof(string),"%s",cmdtext[idx]);
    return SetVehicleNumberPlate(GetPlayerVehicleID(playerid),string);
}
When converting jumped me this error:
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "idx"

So I changed the cmd for params, but so are mistakes...

Very Thanks for help
Reply
#2

1st: https://sampwiki.blast.hk/wiki/Create3DTextLabel
2nd: https://sampforum.blast.hk/showthread.php?tid=271043
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)