Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,639
» Latest member: masadepan475164
» Forum threads: 2,342
» Forum posts: 12,281

Full Statistics

Online Users
There are currently 338 online users.
» 0 Member(s) | 335 Guest(s)
Google, Bing, Baidu

Latest Threads
How to Use Sleep Pots for...
Forum: General Discussions
Last Post: BrightNestK
Yesterday, 07:03 AM
» Replies: 0
» Views: 24
undefined symbol
Forum: Portuguese/Portugu?s
Last Post: leobradoks
2025-10-25, 08:58 PM
» Replies: 1
» Views: 1,591
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 60
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,275
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 105
SARP Gamemode
Forum: Releases
Last Post: Bilal
2025-10-21, 12:58 PM
» Replies: 0
» Views: 67
Need To Hire Pawno Coder....
Forum: General Discussions
Last Post: Dilshad
2025-10-21, 06:20 AM
» Replies: 1
» Views: 803
Original Godfather
Forum: Pawn Scripting
Last Post: NmE
2025-10-20, 11:48 AM
» Replies: 3
» Views: 287
What would you start?
Forum: Life
Last Post: vuongtrungnu13
2025-10-20, 01:55 AM
» Replies: 4
» Views: 9,859
People who have one of th...
Forum: Tech
Last Post: vuongtrungnu13
2025-10-20, 01:39 AM
» Replies: 2
» Views: 5,195

 
  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:

Code:
Adrian(B, item, 0);



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.


  Snow plowing - Job Presentation
Posted by: DraGoN - 2020-12-21, 06:53 AM - Forum: Videos and Screenshots - Replies (8)


  LSCC - WINTER UPDATE TRAILER
Posted by: Los Santos Copchase - 2020-12-21, 02:37 AM - Forum: Videos and Screenshots - No Replies


  (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(playeridCOLOR_GRAYstr);



format(strsizeof(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_CONNECTIONquerysizeof(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