[Ajuda] Comando de criar um veiculo
#1

Tipo digitar /cheetah e spawnar um cheetah.... porem tem uma forma mais fбcil sem ser fazendo por ex: /cheetah, /infernus um por um
quem me ajudar fico grato ^^
Reply
#2

Fazer 411 Comandos? se й louco...

https://sampforum.blast.hk/showthread.php?tid=543581
Reply
#3

Quote:
Originally Posted by Dolpin
Посмотреть сообщение
Fazer 411 Comandos? se й louco...

https://sampforum.blast.hk/showthread.php?tid=543581
Cara nгo funfo esse nгo '-'
Reply
#4

ZCMD e sscanf ou ycmd e sscanf
Reply
#5

Necessбrio:
zcmd
sscanf2

Tutoriais:
https://sampforum.blast.hk/showthread.php?tid=280476
https://sampforum.blast.hk/showthread.php?tid=406455
https://sampforum.blast.hk/showthread.php?tid=277842
https://sampforum.blast.hk/showthread.php?tid=437499
https://sampforum.blast.hk/showthread.php?tid=329507

=D
Reply
#6

Eu to usando isso na base do Dolpin postou... porem tб dando esse erro =/

Код:
error 017: undefined symbol "CreatedVehicle"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply
#7

Vocк colocou errado nгo й CreatedVehicle й CreateVehicle.

O outro erro provavelmente estб faltando um ponto virgula.
Reply
#8

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
Vocк colocou errado nгo й CreatedVehicle й CreateVehicle.

O outro erro provavelmente estб faltando um ponto virgula.
Agora tб dando esse erro =/

error 028: invalid subscript (not an array or too many subscripts): "CreateVehicle"
Reply
#9

Mostra a linha do erro.
Reply
#10

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
Mostra a linha do erro.
Код:
GiveVehicle(playerid,vehicleid)
{
    if(!IsPlayerInAnyVehicle(playerid)) {
    new Float:x, Float:y, Float:z, Float:angle;
    if(CreateVehicle[playerid]) DestroyVehicle(CreateVehicle[playerid]);
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, angle);
    new veh = CreateVehicle(vehicleid, x, y, z, angle, -1, -1, -1);
    SetVehicleVirtualWorld(veh, GetPlayerVirtualWorld(playerid));
    LinkVehicleToInterior(veh, GetPlayerInterior(playerid));
    PutPlayerInVehicle(playerid, veh, 0);
    CreateVehicle[playerid] = veh;
    return 1;
    }
	return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)