Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 784 online users. » 1 Member(s) | 781 Guest(s) Bing, Google, jean77
|
Latest Threads |
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
Yesterday, 07:47 PM
» Replies: 0
» Views: 40
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 67
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 54
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 194
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 278
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 333
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 335
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 139
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 231
|
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 192
|
|
|
Error - compiler - functions may not return arrays of unknown size |
Posted by: vandiesel45 - 2020-12-21, 02:06 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
I have this errors with the latest pawn compiler
Code: error 092: functions may not return arrays of unknown size (symbol "Adrian")
that's de line:
this is stock:
Code: stock Adrian(playerid, string[], V)
{
new A, B, C;
if(!V)
{
? ? switch(random(5))
? ? {
? ? ? ? case 0: V = 1;
? ? ? ? case 1: V = 3;
? ? ? ? case 2: V = 5;
? ? ? ? case 3: V = 7;
? ? ? ? case 4: V = 9;
? ? }
? ? PlayerInfo[playerid][pLoserLevel] = V;
}
switch(V)
{
case 1:
{
A = 3;
B = 4;
C = 7;
}
case 3:
{
A = 8;
B = 9;
C = 1;
}
case 5:
{
A = 3;
B = 7;
C = 4;
}
case 7:
{
A = 1;
B = 3;
C = 9;
}
case 9:
{
A = 5;
B = 2;
C = 6;
}
}
for(new i, l = strlen(string); i < l; i)
{
switch(string[i])
{
? ? case 48..57:
{
string[i] = A;
if(string[i] > 57) string[i] -= 10;
}
? ? case 65..90:
{
string[i] = B;
if(string[i] > 90) string[i] -= 26;
}
case 97..122:
{
? ? string[i] = C;
if(string[i] > 122) string[i] -= 26;
}
}
}
return string;
}
|
|
|
Virtual worlds |
Posted by: Ryder Sixz - 2020-12-21, 12:48 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hello everyone! Could someone please explain virtual worlds to me ((How are they created, what is the limit, etc.))?. I read it on the wiki but it was not entirely clear to me. I would appreciate it very much, greetings to all!
|
|
|
YSI INI_Load and Command_ReProcess const correctness |
Posted by: Jarnokai - 2020-12-21, 12:06 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hi, I have asked about this same problem about a year ago but got no answers.
Yesterday I decided to check back on my script and found the same issue still presists, so I ask now:
I use the y_commands function "Command_ReProcess" to call commands from the script, as in "to fake commands". This means that when a player does something, I might call the command "/quitrace" for example, to make sure the player's actions don't interfere with the ongoing race they are participating.
I can no longer pass literal strings into this function, as the compiler comes up with warnings. How can I keep using the function like this while keeping the warnings away? Or am I misusing the function in some way?
Another, seemingly obvious (to me) false positive comes from using INI_Load with a pre-determined file - I load my server's saved information from a file with a static filename in the server files, but now by passing a literal string as the filename I get const correctness errors.
Any ideas to fix this?
I used sampctl ensure to check that all dependencies are at their newest version, but maybe I am doing something wrong. I never really had time to learn to use sampctl.
|
|
|
(4770) : warning 213: tag mismatch |
Posted by: Stones - 2020-12-21, 02:01 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
I'm finally returning to SAMP again after so many years, i'm just learning to code once again, not i'm getting a tag mismatch for this VIP stuff.
This is part of something that is displayed in the stats command, this is the command i'm getting the warning from.
PHP Code: SendClientMessage(playerid, COLOR_GRAY, str);
format(str, sizeof(str), "> Age: [%d] | Money: [%d] | VIP: [%s]", Character[playerid][Age], Character[playerid][Cash], VIPRANKS[Character[playerid][pVIP]][0]);
This is the SQL data saved upon registration.
PHP Code: mysql_format(SQL_CONNECTION, query, sizeof(query), "UPDATE Accounts SET Admin = %d, VIP = %d WHERE SQLID = %d LIMIT 1",
Account[playerid][Admin],
Account[playerid][pVIP],
Account[playerid][SQLID]);
And these are the ranks specifically used in as seen above
PHP Code: VIPRANKS[Character[playerid][pVIP]][0]
PHP Code: new VIPRANKS[][] =
{
"None",
"Bronze",
"Silver",
"Gold",
"Lifetime"
};
Please forgive me if i'm missing something obvious :)
|
|
|
Gamemode does not save |
Posted by: $outh ?entral - 2020-12-20, 08:39 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
So. I've been trying to edit my gamemode, but it keeps like.. overwriting itself? I don't know. No error appears.
I'm editing the gamemode .pwn, then i'm saving it and then i'm?trying to launch te server once again, but there are no changes in game, even tho i made them in the file.
I'm new in editing gamemodes, so I don't exactly know how it works.
Any help is appreciated.
Edit:
Localhost and online server seems the same. Nothing in game changes after editing the .pwn file (the server is offline when i'm editing it).
ex. I changed the welcome message and in game it appears as?the one before the change.
|
|
|
I'm a bit confused |
Posted by: RoughDawg - 2020-12-20, 07:52 PM - Forum: General Discussions
- Replies (4)
|
 |
Hey
?
I was a bit confused about what this actually is, I read the FAQ so all the smart-ass people can f off with the "go the read..."?
is this gonna be a new multiplayer mod like SA-MP and it will have a new hosting platform like Game-MP or is this just a better version of the already existing SA-MP
|
|
|
Checking aiming data real-time |
Posted by: c4p - 2020-12-20, 06:11 PM - Forum: Pawn Scripting
- Replies (7)
|
 |
I am working on a right-clickable NPC system. Currently I am checking if the player is aiming on the npc under onplayerupdate.
This solution is not the best, because you should move in order to open the npc's menu. Any way to instantly detect aiming? Is there a callback for aim detection?
|
|
|
Necesito ayuda con MYSQL |
Posted by: danicarril - 2020-12-20, 04:46 PM - Forum: Programaci?n
- No Replies
|
 |
Hola buenas tardes, necesito una peque?a ayuda con mysql, pasa que tengo base ulp y esta en mysql pero a la hora de crear una cuenta en cuanto te sales y entras te cambia el skin y no guarda en la gm lo que deber?a que guardar, dejo un v?deo para ver si alguien me puede ayudar?
[video = youtube] https://youtu.be/VDTr0XzdNBw [/ video]
muchas gracias
|
|
|
|