Quote:
Originally Posted by RedRex
There is a 1 error
Код:
C:\Users\Alomari\Desktop\SAMP Server\gamemodes\LVCNR.pwn(166) : error 010: invalid function or declaration
when i type the skin id
Код:
case (skin 286):
{
SetPlayerPos(playerid, 2598.2598,-2146.1592,10.8203);
SetPlayerFacingAngle(playerid, 0);
SetPlayerCameraPos(playerid, 1579.7671,-1634.1367,13.5624);
SetPlayerCameraLookAt(playerid, 1579.7782,-1637.2153,13.5523);
GameTextForPlayer(playerid, "~g~ LVPD ~b~Police Department", 5000, 5);
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_think", 4.1, 0, 1, 1, 1, 1, 1);
SetPlayerColor(playerid, 0x8080FFFF);
gTeam[playerid] = TEAM_LVPD;
}
|
Don't add skin ID, add the skin case for example - at class selection
PHP код:
AddPlayerClass(286,2598.8291,2146.1592,10.8203,355.7550,0,0,0,0,0,0);// Cop Spawn - Case 1
AddPlayerClass(288,2296.4009,2459.3684,10.8203,94.5504,0,0,0,0,0,0); // Cop Spawn - Case 2
AddPlayerClass(281,2292.3000,2465.9094,3.5313,358.9471,0,0,0,0,0,0); // Cop Spawn - Case 3
PHP код:
case 1,2,3:
{
SetPlayerPos(playerid, 2598.2598,-2146.1592,10.8203);
SetPlayerFacingAngle(playerid, 0);
SetPlayerCameraPos(playerid, 1579.7671,-1634.1367,13.5624);
SetPlayerCameraLookAt(playerid, 1579.7782,-1637.2153,13.5523);
GameTextForPlayer(playerid, "~g~ LVPD ~b~Police Department", 5000, 5);
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_think", 4.1, 0, 1, 1, 1, 1, 1);
SetPlayerColor(playerid, 0x8080FFFF);
gTeam[playerid] = TEAM_LVPD;
}