Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Relax on July 06, 2010, 06:46:55 pm

Title: [PAWN]Bug list 0.3z
Post by: Relax on July 06, 2010, 06:46:55 pm
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.
Title: Re: [PAWN]Report
Post by: Jancis71 on July 09, 2010, 07:48:02 pm
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:
Code: [Select]
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
Title: Re: [PAWN]Report
Post by: Relax on July 10, 2010, 03:18:45 am
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.

Quote
About 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.

Quote
Player 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.
Title: Re: [PAWN]Report
Post by: PlayerX on July 27, 2010, 10:15:54 pm
Add SetTimerEx(function[], interval, repeating, ...) :D
Title: Re: [PAWN]Report
Post by: Relax on July 28, 2010, 01:28:52 pm
In vcmp no function SetTimerEx, and this is not the solution. The developers must correct all these shortcomings themselves.  :)
Title: Re: [PAWN]Report
Post by: YmOn on July 29, 2010, 05:58:40 am
He say "ADD"
 ;D
Title: Re: [PAWN]Report
Post by: Tonys on July 29, 2010, 09:34:08 am
Most of the functions you listed work fine for me.
Title: Re: [PAWN]Report
Post by: Relax on July 30, 2010, 02:23:12 am
Most of the functions you listed work fine for me.
Any Examples?
Title: Re: [PAWN]Report
Post by: [Saint] on July 31, 2010, 11:39:08 pm
function


leads to server crash
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on August 01, 2010, 07:09:06 pm
GivePlayerMoney - function does not work

can use it  :)

Code: [Select]
stock GivePlayerMoneyFix(playerid, money)
{
new playermoney = GetPlayerMoney(playerid);
SetPlayerMoney(playerid, playermoney + money);
}

ResetPlayerMoney - not working

Code: [Select]
stock ResetPlayerMoneyFix(playerid)
{
SetPlayerMoney(playerid, 0);
}
Title: Re: [PAWN]Bug list 0.3z
Post by: Relax on August 01, 2010, 07:29:21 pm
LOL, I know how to do it, but I wrote to inform developers about bugs
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on August 01, 2010, 07:44:07 pm
which limits in vc-mp? vehicles, pickups, .... .
where I can see  ???
Title: Re: [PAWN]Bug list 0.3z
Post by: Relax on August 01, 2010, 08:16:58 pm
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.
Title: Re: [PAWN]Bug list 0.3z
Post by: [AoD]NC on August 02, 2010, 01:31:31 am
Quote
MAX_PLAYERS      100
Am I too late? I always thought it is 50 in R2 and 32 in R1.

Quote
MAX_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.

Quote
MAX_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).
Title: Re: [PAWN]Bug list 0.3z
Post by: Relax on August 02, 2010, 02:49:33 am
Quote
MAX_PLAYERS      100
Am I too late? I always thought it is 50 in R2 and 32 in R1.

Quote
MAX_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.

Quote
MAX_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
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on August 03, 2010, 12:08:19 am
please fix Callback OnPlayerText

Returning 0 in this callback will stop the text from being sent, not work  :(
Title: Re: [PAWN]Bug list 0.3z
Post by: Jancis71 on August 03, 2010, 05:33:19 pm
please fix Callback OnPlayerText

Returning 0 in this callback will stop the text from being sent, not work  :(

in 0.4 version, this is done.. i think.
Title: Re: [PAWN]Bug list 0.3z
Post by: PlayerX on August 05, 2010, 11:15:04 pm
cmds in OnPlayerText(playerid, text[]) with 2 params or more, not work.

Code: [Select]
public OnPlayerText(playerid, text[])
{
     if(text[0] == !)
     {
          new tmp[64], idx;
          tmp = strtok(text, idx);
          commands(playerid, 0, tmp, text[strlen(tmp) + 1]);
     }
     return 1;
}

public OnPlayerCommand(playerid, cmdtext[])
{
     new tmp[64], idx;
     tmp = strtok(text, idx);
     commands(playerid, 1, tmp, text[strlen(tmp) + 1]);
     return 1;
}

stock CmdType(type, string[])
{
     new str[128];
     if(type == 1) format(str, sizeof(str), "* Usage: /c %s", string);
     else format(str,sizeof(str), "* Usage: !%s", string);
     return str;
}

public commands(playerid, type, cmd[], params[])
{
     if(strcmp(params, "wep",true))
     {
           new weapon[64], ammo[4], wid, am, msg[128];
           if(sscanf(params,"sz",weapon, ammo)) return SendMessageToPlayer(playerid, CFG_Color, CmdType(type, "wep <WeaponName/WeaponID> <Ammo>"));
           wid = ReturnWeapon(weapon);
           if(wid == -1) return SendMessageToPlayer(playerid, CFG_Color, ">> Error: Invalid Weapon!");
           if(!strlen(ammo) || !IsNumeric(ammo)) am = 500;
           else am = strval(ammo);
           format(msg, 128, ">> Weapon Name: %s - Ammo: %d", wid, am);
           SendMessageToPlayer(playerid, CFG_Color, msg);
           GivePlayerWeapon(playerid, wid, am);
     }
     return 1;
}
Title: Re: [PAWN]Report
Post by: [Saint] on October 26, 2010, 10:10:14 pm
function


not working  :(

if use this function on yours pwn code => server dont load your amx gamemode
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on November 22, 2012, 01:53:19 pm
Fucntion


bugged, color set for playerid, not changes color for other all players on-line...
Title: Re: [PAWN]Bug list 0.3z
Post by: Fuzzy168 on November 22, 2012, 05:19:20 pm
Fucntion

  • SetPlayerTeam(playerid, teamid);

bugged, color set for playerid, not changes color for other all players on-line...
Way tah go Saint.. You bumped a 2 year old topic. We all know they are bugged. Let the dev's finish up 0.4 then we can start using a better client.
Title: Re: [PAWN]Bug list 0.3z
Post by: shaheersa on March 01, 2013, 01:52:01 pm
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.

SetVehiclePos bug fix:
[pawn]public OnPlayerExitVehicle(playerid,vehicleid)
{
EjectPlayerFromVehicle(playerid);
return 1;
}[/pawn]

GivePlayerMoney bug fix:
[pawn]public IncPlayerMoney(playerid, amount)
{
new fmoney;
fmoney = GetPlayerMoney(playerid);
SetPlayerMoney(playerid, fmoney +amount);
return 1;
}[/pawn]

for createvehicle i think use instead addstaticvehicle
Title: Re: [PAWN]Bug list 0.3z
Post by: USA.Ghost on March 10, 2013, 07:29:48 pm
Interiors:
SetPlayerInterior and GetPlayerInterior are not implemented
add DisableInteriorEnterExits func as in sa-mp. I think any devs wanna disable default entrances.
SetPlayerInterior make like that
[pawn]public SetInteriorPlayer(playerid, interiorid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y,Z, 0, interiorid);
return 1;
}

Here, it works fine (if it dosent work replace SetPlayerPos(playerid,X,Y,Z,0,interiorid) to SetPlayerPos(playerid, X,Y,Z,interiorid,interiorid)
Title: Re: [PAWN]Bug list 0.3z
Post by: sseebbyy on March 10, 2013, 09:51:44 pm
Interiors:
SetPlayerInterior and GetPlayerInterior are not implemented
add DisableInteriorEnterExits func as in sa-mp. I think any devs wanna disable default entrances.
SetPlayerInterior make like that
[pawn]public SetInteriorPlayer(playerid, interiorid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y,Z, 0, interiorid);
return 1;
}

Here, it works fine (if it dosent work replace SetPlayerPos(playerid,X,Y,Z,0,interiorid) to SetPlayerPos(playerid, X,Y,Z,interiorid,interiorid)

STOP BUMPING ! Make a new post if that helps you but don't bump old topics.
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on March 11, 2013, 12:04:34 am
sseebbyy, if you carefully read the topic title, it can be understand that it is still relevant.
Title: Re: [PAWN]Bug list 0.3z
Post by: sseebbyy on March 11, 2013, 12:15:10 am
sseebbyy, if you carefully read the topic title, it can be understand that it is still relevant.

The topic was made in 2010, and we are in 2013. If it is still relevant, you can't just post a reply, after 3 years old ! The topic is dead, so if you want to show something to us, make a new topic, don't revive the old threads..
Title: Re: [PAWN]Bug list 0.3z
Post by: [Saint] on March 11, 2013, 10:49:45 am
sseebbyy, if you carefully read the topic title, it can be understand that it is still relevant.

The topic was made in 2010, and we are in 2013. If it is still relevant, you can't just post a reply, after 3 years old ! The topic is dead, so if you want to show something to us, make a new topic, don't revive the old threads..

I do not see any problem, or may from 2010 to 2013 went vc-mp to any update the client and the server? not, then topic is still relevant, see topic name.