new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
AddStaticVehicle(400,x,y,z+2);
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1993) : warning 202: number of arguments does not match definition C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1993) : warning 202: number of arguments does not match definition C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\TEST.pwn(1993) : warning 202: number of arguments does not match definition
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
AddStaticVehicle(400,x,y,z+2,color1,color2);
AddStaticVehicle(modelid, Float:X, Float:Y, Float:Z, Float:Angle, color1, color2); |
AddStaticVehicle(400,x,y,z+2,COLOR,COLOR);
You forgot the colors:
pawn Код:
https://sampwiki.blast.hk/wiki/Colors_List |
CreateVehicle(400,x,y,z,Float:rotation,4,5,respawn_delay);
new Float:x, Float:y, Float:z, Float:angle; //define x-y-z-angle
GetPlayerPos(playerid, x, y, z); //get the player's position
GetPlayerFacingAngle(playerid, angle); //get the player's angle
new veh = CreateVehicle(429, x, y, z, angle, 0, 0, 60); //modelid, x-y-z-angle, color1, color 2, respawn-delay
Float:rotation= This is the rotation of the vehicle , Means facing angle of vehicle respawn_delay= set 0 if you dont want to respawn vehicle
dcmd_car1(playerid, params[])
{
#pragma unused params
if (Tester[playerid] == 1) { // if the player's tester variable is 1
new Float:x,Float:y,Float:z;
CreateVehicle(400,x,y,z+2,4,4,5,0); // spawn a car in the front of him
SendClientMessage(playerid, COLOR_WHITE,"you spawned a car.");
}
else { // else nothing happen
SendClientMessage(playerid, COLOR_CERVENA,"You are not a beta-tester !");
}
return 1;
}