Author Topic: [PAWN]Bug list 0.3z  (Read 15362 times)

0 Members and 1 Guest are viewing this topic.

Offline [Saint]

  • Made Man
  • ***
  • Posts: 126
  • Pawn scripting for SA:MP and VC:MP
    • View Profile
    • vk.com/vicecitymultiplayer
Re: [PAWN]Bug list 0.3z
« Reply #15 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  :(


Russian Сommunity

Вступайте в группу: vk.com/vicecitymultiplayer

My profile on sa-mp.com

Offline Jancis71

  • Street Thug
  • *
  • Posts: 21
    • View Profile
Re: [PAWN]Bug list 0.3z
« Reply #16 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.

Offline PlayerX

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: [PAWN]Bug list 0.3z
« Reply #17 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;
}

Offline [Saint]

  • Made Man
  • ***
  • Posts: 126
  • Pawn scripting for SA:MP and VC:MP
    • View Profile
    • vk.com/vicecitymultiplayer
Re: [PAWN]Report
« Reply #18 on: October 26, 2010, 10:10:14 pm »
function

  • GetPlayerWeapon(playerid);

not working  :(

if use this function on yours pwn code => server dont load your amx gamemode
« Last Edit: October 26, 2010, 10:12:11 pm by [Saint] »


Russian Сommunity

Вступайте в группу: vk.com/vicecitymultiplayer

My profile on sa-mp.com

Offline [Saint]

  • Made Man
  • ***
  • Posts: 126
  • Pawn scripting for SA:MP and VC:MP
    • View Profile
    • vk.com/vicecitymultiplayer
Re: [PAWN]Bug list 0.3z
« Reply #19 on: November 22, 2012, 01:53:19 pm »
Fucntion

  • SetPlayerTeam(playerid, teamid);

bugged, color set for playerid, not changes color for other all players on-line...
« Last Edit: November 22, 2012, 01:55:52 pm by [Saint] »


Russian Сommunity

Вступайте в группу: vk.com/vicecitymultiplayer

My profile on sa-mp.com

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: [PAWN]Bug list 0.3z
« Reply #20 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.
I'm beginning to feel like a Lag God, Lag God

Offline shaheersa

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: [PAWN]Bug list 0.3z
« Reply #21 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
« Last Edit: March 01, 2013, 01:58:22 pm by shaheersa »

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: [PAWN]Bug list 0.3z
« Reply #22 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)



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: [PAWN]Bug list 0.3z
« Reply #23 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.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline [Saint]

  • Made Man
  • ***
  • Posts: 126
  • Pawn scripting for SA:MP and VC:MP
    • View Profile
    • vk.com/vicecitymultiplayer
Re: [PAWN]Bug list 0.3z
« Reply #24 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.


Russian Сommunity

Вступайте в группу: vk.com/vicecitymultiplayer

My profile on sa-mp.com

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: [PAWN]Bug list 0.3z
« Reply #25 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..

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline [Saint]

  • Made Man
  • ***
  • Posts: 126
  • Pawn scripting for SA:MP and VC:MP
    • View Profile
    • vk.com/vicecitymultiplayer
Re: [PAWN]Bug list 0.3z
« Reply #26 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.


Russian Сommunity

Вступайте в группу: vk.com/vicecitymultiplayer

My profile on sa-mp.com