| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 491 online users. » 0 Member(s) | 488 Guest(s) Yandex, Google, Bing
|
| Latest Threads |
Ajuda com salvamento nao ...
Forum: Portuguese/Português
Last Post: Crazy_ArKzX
2026-05-02, 11:28 AM
» Replies: 1
» Views: 110
|
Object Remove?
Forum: Support
Last Post: Mivco
2026-04-29, 08:12 PM
» Replies: 0
» Views: 46
|
Floorp is a good webbrows...
Forum: Tech
Last Post: NoxxeR
2026-04-29, 01:01 AM
» Replies: 0
» Views: 73
|
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-04-27, 03:36 PM
» Replies: 0
» Views: 72
|
Algemene Discussies
Forum: Dutch/Nederlands
Last Post: Eamon
2026-04-27, 12:03 AM
» Replies: 41
» Views: 85,573
|
Help me find a current ar...
Forum: Tech
Last Post: KOZYR
2026-04-24, 03:53 PM
» Replies: 0
» Views: 87
|
Czy SA:MP RP jeszcze żyje...
Forum: Ogólne
Last Post: Sztakier
2026-04-24, 09:11 AM
» Replies: 0
» Views: 85
|
Donald Trump wars every c...
Forum: Life
Last Post: NoxxeR
2026-04-23, 08:04 PM
» Replies: 0
» Views: 113
|
PawnPro 3.0 — Extensão VS...
Forum: Portuguese/Português
Last Post: NullSablex
2026-04-19, 10:58 AM
» Replies: 0
» Views: 107
|
Harmony Maps
Forum: Maps
Last Post: Harmony
2026-04-19, 09:36 AM
» Replies: 0
» Views: 142
|
|
|
| Why my code only sends "else"? |
|
Posted by: sampaux - 2021-01-20, 12:50 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Code: for(new i = 0;i < 100;i++)
{
if(PlayerInfo[i][cargo] != 0)
{
GameTextForPlayer(i, "~r~Novo Report!", 3000, 5);
GetPlayerName(id, reportado, sizeof(reportado));
GetPlayerName(playerid, reportador, sizeof(reportador));
format(report, sizeof(report), "Nick e id: %s [%d]\nMotivo: %s\nReportado por: %s", reportado, id, motivo, reportador);
SendClientMessage(i, -1, "====={4291ff}Novo Report{FFFFFF}=====");
SendClientMessage(i, -1, report);
}
else
{
SendClientMessage(i, -1, "asdadsadad");//I put it in else to prove that code only sends else
}
this code is a /report command. PlayerInfo[][cargo] == Admin level
despite my PlayerInfo[][cargo] != 0 in game, this code keep sending the else, considering PlayerInfo[][cargo] == 0
Basically, it sends " SendClientMessage(i, -1, "asdadsadad"); " for all online admins instead of the fist code, and this is not what should happen
Fix it is easy, obviously just invert the codes. But i want know WHY THIS OCCURS???
|
|
|
|
| Tutorials |
|
Posted by: RhaegarX - 2021-01-20, 11:33 AM - Forum: General Discussions
- Replies (2)
|
 |
Hi guys, I was browsing the pages of sampforumarchiv reviewing some topics, and then I thought about re-posting some tutorials and includes the old samp forum (with due credit to each creator) to be able to move the community more and help those who are new and there's nowhere to go. What do you think of the idea?
|
|
|
|
| Вопросы по поводу рус. раздела |
|
Posted by: Silicium - 2021-01-20, 08:45 AM - Forum: Russian/Русский
- Replies (1)
|
 |
Приветствую.
Так как форум сампа давно мёртв, а форум burgershot'a относится к open.mp, который в свою очередь рано или поздно заменит sa:mp, то есть пару вопросов по поводу развития рус. раздела:
Будет ли саб-форум для релизов? Будут ли топики а-ля "скриптинг курилка" для обсуждений?
P.s. многие считают что формат "форумов" мёртв. Да, форум мёртв, когда на нём нету ничего полезного.
|
|
|
|
[Help] - Park vehicle cmd issues |
|
Posted by: Disretired - 2021-01-20, 12:15 AM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hello all, myself and a group of friends are working on a server and have noticed an issue with our park vehicle command.
The command only parks the car in Virtual World 0, we wanted to do dynamic garages, but when we /park in a garage with another VW other then 0 the car disappears and is parked in the VW 0 instead of the VW the garage is set too.
I've attached the command below if anyone can point out the issue, this is the command we had when we first started the project, I myself am still getting the hang of pawn so not sure what the problem is that's causing it to only park in VW 0.
Code: CMD:park(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2 || PlayerInfo[playerid][pDonateRank] == 5)
{
new playerpark;
if(!sscanf(params, "i", playerpark))
{
for(new d = 0; d < MAX_PLAYERVEHICLES; d)
{
if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerpark][d][pvId]))
{
new Float:x, Float:y, Float:z, Float:angle, Float:health;
GetVehicleHealth(PlayerVehicleInfo[playerpark][d][pvId], health);
if(PlayerInfo[playerpark][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerpark][pLockCar] = INVALID_VEHICLE_ID;
GetVehiclePos(PlayerVehicleInfo[playerpark][d][pvId], x, y, z);
GetVehicleZAngle(PlayerVehicleInfo[playerpark][d][pvId], angle);
SurfingCheck(GetPlayerVehicleID(playerid));
UpdatePlayerVehicleParkPosition(playerpark, d, x, y, z, angle, health);
PutPlayerInVehicle(playerid, PlayerVehicleInfo[playerpark][d][pvId], 0);
SetPlayerArmedWeapon(playerid, 0);
new string[30 (MAX_PLAYER_NAME * 2)];
format(string, sizeof(string), "* %s has parked %s's vehicle for them.", GetPlayerNameEx(playerid), GetPlayerNameEx(playerpark));
new szMessage[128];
format(szMessage, sizeof(szMessage), "AdmCmd: %s has parked %s's vehicle for them", GetPlayerNameEx(playerid), GetPlayerNameEx(playerpark));
ABroadCast(COLOR_LIGHTRED,szMessage, 2);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}
SendClientMessageEx(playerid, COLOR_GRAD1, "You need to be in a player owned vehicle");
}
else
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /park <playerid>");
}
else
SendClientMessageEx(playerid, COLOR_GRAD1, "Park is now an moderator command to combat abuse. /requesthelp or /am to an admin to get a car parked at your house.");
return 1;
}
|
|
|
|
| [AJUDA]EditDynamicObject |
|
Posted by: willian franco - 2021-01-19, 07:24 PM - Forum: Portuguese/Português
- Replies (2)
|
 |
os players android n?o est?o conseguindo editar o?EditDynamicObject port?o, caixa ou acess?ria?
isso ? problema do APK que nao tem esse sistema ou tem um sistema diferente para colocar e funcionar no android ?
obrigadoo
|
|
|
|
| Help: warning 213 tag mismatch |
|
Posted by: Behemoth - 2021-01-19, 06:17 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Heyo,
recently got back into scripting, and trying to create a function.
"function:SetPlayerCamera(playerid)"
When I compile, I get warning "warning 213: tag mismatch: expected tag "Function", but found none ("_")"
It seems to be with the tag "function", but when I remove it, it works fine. This only seems to be an issue in the new compiler, but I'm struggling to understand why. Could someone please explain what this warning actually means and what best practice would be?
cheers,
|
|
|
|
|