• Welcome to Vice City Multiplayer.
 

[PAWN]Bug list 0.3z

Started by Relax, July 06, 2010, 05:46:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Relax

Hello guys! After release  pawno version I began to work on RPG mod. But when creating confronted with such problems:
GivePlayerMoney - function does not work
CreateVehicle - creates a car, but you can see only after rejoining to serv
ResetPlayerMoney - not working
PutPlayerInVehicle and PutDirectlyInVehicle absolutely the same function. Why? In addition, they do not work if you are already in the car.
SetVehiclePos - does not work if you sit in this car
SetPlayerSkin - not working

SetVehicleDoorsStatus (vehicleid, bool);
SetVehicleAlarm (vehicleid, bool);
GetWeaponName
ChangeVehicleColor

not working ...

GameModeExit(); - leads to server crash
IsPlayerInVehicle - leads to server crash

I hope that functions will be work in future.

Other bugs:

Spawn Func: I think player must be spawned once in game. And after player spawn vc-mp by default always give start money 2000. This is unnecessary.

Request Class: In callback OnGameModeInit i always must add SetPlayerStartPos. Why? Make easier such as a sa-mp.
Just add SetPlayerPos func in callback OnPlayerSpawn

Events:
All events written by default. This is unnecessary, because developers wanna set personal text.

Interiors:
SetPlayerInterior and GetPlayerInterior are not implemented
add DisableInteriorEnterExits func as in sa-mp. I think any devs wanna disable default entrances.

Player Positions:
why this function needs the angle of rotation?
add function SetPlayerZAngle as in sa-mp

Camera Func:
Why all camera functions have not playerid parametr?

Vehicle Functions:
I think it lacks some useful functions as...
GetVehicleModel
GetVehicleColor


Later i will write other bugs.

Jancis71

#1
SetVehicleDoorsStatus (vehicleid, bool);
SetVehicleTyre (vehicleid, bool);
SetVehicleAlarm (vehicleid, bool);
SetVehicleLights (vehicleid, bool);
this for me is succesully working, bool is 0,1 or 2

like:

else if (strcmp(cmd, "lights", true) == 0) {
new param[256];
param = strtok(cmdtext, idx);

if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_TEXT, "You need to login first!");
else if (IsPlayerInAnyVehicle(playerid)) {
if (!strlen(param)) SendClientMessage(playerid,COLOR_TEXT,"USAGE: /c lights [on/off]");
else {
new id; id=GetPlayerVehicleID(playerid);
if(strcmp(param, "on", true) == 0) {
SetVehicleLights(id,1);
SendClientMessage(playerid,COLOR_TEXT,"Lights of vehicle turned on.");
}
else if(strcmp(param, "off", true) == 0) {
SetVehicleLights(id,0);
SendClientMessage(playerid,COLOR_TEXT,"Lights of vehicle turned off.");
}
else SendClientMessage(playerid,COLOR_TEXT,"Syntax Error! USAGE: /c lights [on/off]");
}

  }


About spawn you can do just as in samp, i made random spawn point for my server, setplayerstartposition is for skin selection.


Player positions, Interiors: VCMP one not bad SetPlayerPos(playerid, Float:X, Float:Y, Float:Z,Float:rotation,interior);

"Camera functions" too is for skin selecting

Vehicle: GetVehicleModel i made by myself, but i think too this is necessary

Relax

#2
Hm, SetVehicleLights and SetVehicleTyre are really working. But other functions of this list doesn't work.
I tried to set value 0,1, true, false, but no effect.

QuoteAbout spawn you can do just as in samp, i made random spawn point for my server, setplayerstartposition is for skin selection.
That's what I'm doing. But I had in mind that the function of a hampered when the choice of the class.
I would like to make a choice of classes in different places for different classid's, but because setplaerstartposition I can not do it.

QuotePlayer positions, Interiors: VCMP one not bad SetPlayerPos(playerid, Float:X, Float:Y, Float:Z,Float:rotation,interior);
If you set the value of the interior in this way, we turn more and to set coordinate, but it is unnecessary requests. In addition, the player jumps, if you set the interior in this way.

Quote"Camera functions" too is for skin selecting
I know it very well, but i think many devs wanna set camera for playerid, because it can be useful not only when choosing a skin.

tnx for reply.

PlayerX

Add SetTimerEx(function[], interval, repeating, ...) :D

Relax

In vcmp no function SetTimerEx, and this is not the solution. The developers must correct all these shortcomings themselves.  :)

YmOn

Good scripter is always Psiho ;DDD

Tonys

Most of the functions you listed work fine for me.

Relax

Quote from: Tonys on July 29, 2010, 08:34:08 AM
Most of the functions you listed work fine for me.
Any Examples?

[Saint]

function


  • GameModeExit();

leads to server crash

88.83.197.243:7778

[Saint]

#9
Quote from: Relax on July 06, 2010, 05:46:55 PM
GivePlayerMoney - function does not work

can use it  :)


stock GivePlayerMoneyFix(playerid, money)
{
new playermoney = GetPlayerMoney(playerid);
SetPlayerMoney(playerid, playermoney + money);
}


Quote from: Relax on July 06, 2010, 05:46:55 PM
ResetPlayerMoney - not working


stock ResetPlayerMoneyFix(playerid)
{
SetPlayerMoney(playerid, 0);
}


88.83.197.243:7778

Relax

LOL, I know how to do it, but I wrote to inform developers about bugs

[Saint]

which limits in vc-mp? vehicles, pickups, .... .
where I can see  ???

88.83.197.243:7778

Relax

MAX_PLAYERS      100
MAX_VEHICLES    254 (after 180 crash)
MAX_PICKUPS      stability 180
MAX_CLASSES     Unknown, but less than 40. If u created more, u can see wrong skin.

[AoD]NC

QuoteMAX_PLAYERS      100
Am I too late? I always thought it is 50 in R2 and 32 in R1.

QuoteMAX_VEHICLES    254 (after 180 crash)
Every added vehicle makes the server a little bit unstable :). I heard that you can add only a certain amount of a car like Sabre Turbo, but didn't tried it.

Also Voodoo is crashy.

QuoteMAX_PICKUPS      stability 180
If I am not wrong, VRocker said maybe a year ago, that it's +/- 336. However if you create more, they won't be visible (and be crashy after spawn).

Relax

Quote from: [AoD]NC on August 02, 2010, 12:31:31 AM
QuoteMAX_PLAYERS      100
Am I too late? I always thought it is 50 in R2 and 32 in R1.

QuoteMAX_VEHICLES    254 (after 180 crash)
Every added vehicle makes the server a little bit unstable :). I heard that you can add only a certain amount of a car like Sabre Turbo, but didn't tried it.

Also Voodoo is crashy.

QuoteMAX_PICKUPS      stability 180
If I am not wrong, VRocker said maybe a year ago, that it's +/- 336. However if you create more, they won't be visible (and be crashy after spawn).
Open include for pawn vc-mp :)
#define MAX_PLAYER_NAME                     24
#define MAX_PLAYERS                        100
#define MAX_VEHICLES                     254
#define INVALID_PLAYER_ID                  255
#define NO_TEAM                           255
and in default mode.pwn:
//   note: we reccomend less than roughly 180 total vehicles at once for stablility in flying vehicles